diff options
| author | Olivier Dony <odo@openerp.com> | 2017-08-17 21:06:37 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-08-17 21:06:37 +0200 |
| commit | b31577a11a989b4358d59bc432a7fdbc73ac0d16 (patch) | |
| tree | 73a66571802dc0acd94972cb0a7a0ded3ae44c6d /addons/web/static/src/js/fields/basic_fields.js | |
| parent | a313bcf7f33244d65ca706a3e16dae9260f9f2b3 (diff) | |
[FIX] portal wizard: fix compatibility w/ new views
New saas-16 web views have a more consistent handling of `readonly`
attributes and do not save read-only fields inside x2m. In the previous
implementation this was an exception to the rule (even if rather
inconsistent/unexpected).
A new attribute `force_save` was introduced to workaround the default
behavior when considered necessary.
The portal wizard is affected by the change, as the partner_id field of
the lines is readonly but required. It could be avoided by filling the
wizard lines before opening it, instead of relying on default values and
onchanges. However this would likely require extra boilerplate code and
an extra server action. Dropping the readonly flag would work too, but
would look weird.
Using the new `force_save` flag is a simpler alternative.
See also rev. 3b3f6f04af79d7dcc4461262e14e05096d76180b
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
