camptocamp / oerpscenario

Business Driven Development (BDD) for OpenERP/Odoo
GNU General Public License v2.0
37 stars 31 forks source link

Would the onchange events execute in cascade ? #51

Open yucer opened 8 years ago

yucer commented 8 years ago

Here we can see an example of calling an onchange event from a wizard object:

http://bit.ly/1QAcSDN

My question is: Would that update all the values in cascade ?

I mean: Would it run the onchange events of the fields specified in the "values" dictionary in the object ? Or should my step implementation code make the cascading ?

yvaucher commented 8 years ago

@yucer No, you need to call each onchange.

In the example, it calls only the template_id onchange and then write the values without calling other onchanges.