summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2020-06-16 12:03:01 +0200
committerGitHub <noreply@github.com>2020-06-16 12:03:01 +0200
commitdab0fc2fb929841b61ff74d2b6b4360557905222 (patch)
tree0435b6eed4c191478087766684393b74b73be793 /addons/web/static/src/js/views/basic/basic_controller.js
parenta58458fb560eca6539d8e9cca502806fdc91bd05 (diff)
parent9194c1838962faa50bba9cd6a84f7b6040df25da (diff)
[FW][MERGE][FIX] event: correctly manage configuration coming from template
PURPOSE Fix various issues spotted in 13.3 when testing event. Notably computation of 2many fields coming from template. SPECIFICATIONS When updating template on an event, one2many fields should be better managed. Previous heuristic was * if event type uses o2m configuration (use_ticket / _schedule / _question) and has lines * erase existing lines; * create new lines based on old one; This has the drawback of loosing information of what is sent (mail) or sold (tickets) or answered( questions). Another drawback is that only types having line are synchronized. This means that if updating several times the event type you could end up with an XMas configuration with lines coming from different event types, depending on their o2m configuration. We choose a better heuristic that should solve this issue * every time we change type, independently of its use_* field that is used mainly for UX on the type itself: * erase existing lines that have not been used yet (no mail sent, no ticket linked to registrations, no answer linked to registrations) * create new lines based on old one; if type has no lines, event will have its old empty line erased as well; It means that we try to synchronize more the type to the event while keeping configuration line already used in some registrations. Also provide some other fixes like deletion restrictions or better domain for UX purpose. See sub commits for more details. LINKS Task ID 2244487 PR odoo/odoo#52923 closes odoo/odoo#53034 Forward-port-of: odoo/odoo#52998 Forward-port-of: odoo/odoo#52923 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions