Enforce synchronisation of all contact value fields

issue4128
review8571002
This commit is contained in:
Cédric Krier committed 2014-09-16 10:11:22 +02:00
1 parent 697f24cb5c
commit 65ab2ebbb9
1 file changed
+3 -1
+3 -1
View File
@@ -33,7 +33,9 @@ class ContactMechanism(ModelSQL, ModelView):
type = fields.Selection(_TYPES, 'Type', required=True, states=STATES,
sort=False, depends=DEPENDS)
value = fields.Char('Value', select=True, states=STATES, depends=DEPENDS)
value = fields.Char('Value', select=True, states=STATES, depends=DEPENDS
# Add all function fields to ensure to always fill them via on_change
+ ['email', 'website', 'skype', 'sip', 'other_value'])
comment = fields.Text('Comment', states=STATES, depends=DEPENDS)
party = fields.Many2One('party.party', 'Party', required=True,
ondelete='CASCADE', states=STATES, select=True, depends=DEPENDS)