diff options
| author | Géry Debongnie <ged@odoo.com> | 2018-02-09 15:47:43 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-02-12 10:35:54 +0100 |
| commit | e0cb522bf2bb1c12b2a3cce8c441a93a47685e0a (patch) | |
| tree | f40b4fbbf6654c5510518926bb2538e15f8e0045 /addons/web_editor/static/src | |
| parent | 9e6bc391be6e5c6e7064dcd28ebe27fe79ddba0d (diff) | |
[FIX] web: update form widgets when state has changed
Since the <widget> tag is not used anymore in any of our views, it was
not really properly supported. In particular, the form widget was not
notified when the state of the form view has changed, which makes it
very difficult to actually do any useful work.
With this commit, we make sure that the widget method 'updateState' (if
it exists) is called with the new state whenever it changed.
This should allow developers to do useful work without having to work
around the issue. Note that this is not really a perfect solution, since
the updateState methot may or may not have been implemented.
I think that we need some kind of ViewWidget abstraction, which could be
used to have a better and more complete API for widgets in a basic view.
And AbstractField could inherit from ViewWidget.
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
