~openerp-dev/openobject-client/trunk-imp-gtk_recursive_onchange-xal

« back to all changes in this revision

Viewing changes to bin/widget/model/field.py

  • Committer: Xavier ALT
  • Date: 2012-05-03 07:38:35 UTC
  • Revision ID: xal@openerp.com-20120503073835-m2osqm41lz2i3lhi
[IMP] add recursive 'on_change' calling

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        if self.get_state_attrs(model).get('readonly', False):
63
63
            return
64
64
        if self.attrs.get('on_change',False):
65
 
            model.on_change(self.attrs['on_change'])
 
65
            model.on_change(self.name, self.attrs['on_change'])
66
66
        if self.attrs.get('change_default', False):
67
67
            model.cond_default(self.attrs['name'], self.get(model))
68
68
 
122
122
        res = self.set(model, value)
123
123
        model.cond_default(self.attrs['name'], self.get(model))
124
124
        if self.attrs.get('on_change',False):
125
 
            model.on_change(self.attrs['on_change'])
 
125
            model.on_change(self.name, self.attrs['on_change'])
126
126
        return res
127
127
 
128
128
    def get_default(self, model):