mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_widget_x2many_2d_matrix: Migration to 9.0
This commit is contained in:
committed by
Simone Orsi
parent
2a2439b848
commit
e3a2ca214f
@@ -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
|
||||
===========
|
||||
|
||||
Reference in New Issue
Block a user