[MIG] web_widget_x2many_2d_matrix: Migration to 9.0

This commit is contained in:
Pedro M. Baeza
2016-09-16 14:35:54 +02:00
committed by Simone Orsi
parent 2a2439b848
commit e3a2ca214f
3 changed files with 44 additions and 20 deletions

View File

@@ -110,6 +110,15 @@ Known issues / Roadmap
======================
* it would be worth trying to instantiate the proper field widget and let it render the input
* If you pass values with an onchange, you need to overwrite the model's method
`onchange` for making the widget work::
@api.multi
def onchange(self, values, field_name, field_onchange):
if "one2many_field" in field_onchange:
for sub in [<field_list>]:
field_onchange.setdefault("one2many_field." + sub, u"")
return super(model, self).onchange(values, field_name, field_onchange)
Bug Tracker
===========