diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2020-03-10 15:45:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-10 15:45:15 +0100 |
| commit | 397872a07fe22afa7d83b3170e3b037be1ae607a (patch) | |
| tree | ecd7082db496bf9640bcecb97a1b6ebb7f40cfb5 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | e7d8e26ae7510f1a4afeb6119ba12f17c8a787c5 (diff) | |
| parent | 45f32c5795e0af3b0436ed77f1a79311830b2d41 (diff) | |
[MERGE] (website_)event(_*): move from onchange to editable stored fields
PURPOSE
Try to move from onchange / default_get to stored editable computed fields.
Behavior should be the same (computed or set by user), with support of
create / write / onchange field update without additional code.
SPECIFICATIONS: GLOBAL RULES
Update classic fields updated in some cases by onchange and/or default methods
by fields with store=True, readonly=False. It means their value comes either
from manual user input, either from trigger based computation.
Remove onchange and default_get when possible, leading to an unique computation
method and clearing fields definition.
Also clean some fields definition inconsistencies, notably required fields
that should instead be correctly computed or default that have no real meaning.
SPECIFICATIONS: OTHER COMMITS
Perform some light code cleaning before updating fields.
Keep some explicit onchanges:
* onchange partner on registration: required as UI flow is a bit different
from automated code update;
* onchange track boolean on event: allow to simplify fields dependencies;
Rename event type default_registration_max to seats_max to match
naming.
Improve event type data and demo
See sub commits for more details.
LINKS
Task ID 2089156
Community PR #42911
Upgrade PR odoo/upgrade#912
Related: odoo/upgrade#912
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
