openerp - Defining onchange methods in odoo if on_change is defined on the model -
i'm trying define onchange
event on field amount
, line_cr_ids.amount
on account.voucher
definition this:
@api.one @api.depends('line_cr_ids', 'line_cr_ids.amount') def _line_amount_onchange(self): ...
or
@api.one @api.onchange('amount') def _onchange_amount(self): ...
are never called, noticed on_change
parameter defined on fields in view. means way onchange
redefine 1 defined?
yes, need redefine on_change method called view. or change view removing attribute.
Comments
Post a Comment