diff options
| author | David Monjoie <dmo@odoo.com> | 2017-07-26 12:00:42 +0200 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2017-07-28 08:29:12 +0200 |
| commit | 3b3f6f04af79d7dcc4461262e14e05096d76180b (patch) | |
| tree | 1c483a935bd90f4ef3c13fd3fb30c2f8b6554d87 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 4e12edc023dd20d435f5575b5517a3c11deb8421 (diff) | |
[FIX] web: save changes when readonly if force_save is set
In previous versions, readonly used to prevent sending the values
of the fields to the server. However, it was not working properly
for fields which have their own sub-arch in the view, as the value
used to be sent regardless of the readonly value.
In the new views, the readonly modifier is never overlooked, which
created a bug in the stock_picking_return wizard which was not
able to return products received from a po anymore. Basically the
value of the product_id field was not sent so the create crashed.
This commit introduces a new "force_save" modifier which is used
to express that we want to save the value of the field even though
it is readonly from a user interface point of view.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
