summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-02-19 15:15:53 +0000
committerThibault Delavallée <tde@odoo.com>2020-03-10 11:15:09 +0000
commit7666f97693645ac3c6139089ed01ac411347af97 (patch)
tree5e9a1ddfef6007f2b62991e7baadfbae0f0bf070 /addons/web/static/src/js/fields
parentc6003af73409e2cd124f641fb7714fefa9dc8b01 (diff)
[REF] event_sale: move from onchange / default to stored editable computed 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. LINKS Task ID 2089156 Community PR odoo/odoo#42911
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions