diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2019-12-16 17:48:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-16 17:48:19 +0100 |
| commit | b0d2cd0041ab755cbbff543cc2cabf17d3183003 (patch) | |
| tree | a89e8519fc925f3d4b08a1e62cc066bf8ca3bf0b /addons/web/static/src/js/core | |
| parent | b7eb4283c7c4e3111c99d17bc430cf37fbeeebd5 (diff) | |
| parent | f807b636faa889bbca1c2bcdbe6af7c4818fff7e (diff) | |
[MERGE] mass_mailing(_sms): move from onchange / default to stored editable computed fields
PURPOSE
Try to move from onchange / default_get to stored editable computed fields.
Normally behavior should be the same (computed or set by user), with support
in create / write + onchange without additional code.
SPECIFICATIONS
Update classic fields with onchange to stored editable computed fields. It
means their value will come either from manual user input, either computed
based on triggers. Purpose is to remove all onchange and default_get when
possible.
Clean fields definition inconsistencies, like default / required on computed
fields. Indeed computed fields should always have a value, maybe coming from
user input. They should not have default / required that are attributes for
classic fields.
Mailing domain computation is also cleaned and is now reset once the
mailing domain is changed. Indeed trying to keep a previous domain
based on try / except has no meaning from functional point of view. If model
changes then domain should change as it is a business record, not just a
technical domain to try to apply.
Finally add some tests to help develop and maintain those fields computation.
LINKS
Task ID 2088577
PR #41877
Enterprise PR odoo/enterprise#7278
Related: odoo/enterprise#7278
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/core')
0 files changed, 0 insertions, 0 deletions
