Browse Source

Do not create changesets on moved contacts

As we just created the contact with a 'copy' we don't want to have a
changeset for the initialization values
pull/208/head
Guewen Baconnier 9 years ago
parent
commit
108994602e
  1. 3
      partner_changeset/models/res_partner_changeset.py

3
partner_changeset/models/res_partner_changeset.py

@ -41,7 +41,8 @@ class ResPartnerChangeset(models.Model):
string='Partner', string='Partner',
select=True, select=True,
required=True, required=True,
readonly=True)
readonly=True,
ondelete='cascade')
change_ids = fields.One2many(comodel_name='res.partner.changeset.change', change_ids = fields.One2many(comodel_name='res.partner.changeset.change',
inverse_name='changeset_id', inverse_name='changeset_id',
string='Changes', string='Changes',

Loading…
Cancel
Save