summaryrefslogtreecommitdiff
path: root/addons/web/static/tests
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2020-03-24 09:34:22 +0100
committerGitHub <noreply@github.com>2020-03-24 09:34:22 +0100
commitbaab53073701e522b26017e2e8cb3c4ff6c8bbe1 (patch)
treed0e706dd0cb70237c2d45c487905e63820b71b56 /addons/web/static/tests
parenta5df7552842564b649ce2930ec302018ed18f534 (diff)
parent8304bc01ba9f150e884f56265a750a345507bb18 (diff)
[MERGE] crm(_*): 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. USE EDITABLE STORED FIELDS 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. CLEAN CRM CONVERT WIZARDS CODE AND FIELDS USE In this merge we also rewrite code located and/or used in convert or merge wizards. Indeed it holds unnecessary variables, dictionaries manipulation that hides the real business flow, badly named variables, unclear methods, ... Logic of those wizards seem quite simple but is hidden behind a wall of bloated code. CLEAN CRM.TEAM MODEL Clean statistics fields definition on crm.team. Future tasks will improve the use of sales team in crm and first steps is to clean a bit models linked to sales team. LINKS Task ID 2088565 (crm: from onchange to compute) Community PR odoo/odoo#41955 Enterprise PR odoo/enterprise#7322 Upgrade PR odoo/upgrade#781 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/tests')
0 files changed, 0 insertions, 0 deletions