summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/model/model.js
AgeCommit message (Collapse)Author
2020-08-24[FIX] mail: introduce findFromIdentifyingDataSébastien Theys
This is necessary to check the existence of a record based on identifying data without having to use `insert` (or the inefficient `find`). PR: #56243 Part of task-2323670 X-original-commit: c4bbfc5e2a8d236e5fc79a63c13575de146afbd7
2020-08-21[FIX] mail: avoid unnecessary update of inverse in JS modelsSébastien Theys
Part of task-2308312 X-original-commit: 0e08e43decf18108d25d051ad76c093bcdf434db
2020-08-05[FIX] mail: clean up JS relations by storing recordsSébastien Theys
Remove the support and the conversion from record to localId and back from localId to record. Part of task-2308312 closes odoo/odoo#55481 X-original-commit: fc5e8be4e65518770a281f0dffae07854d20073a Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-03[FIX] mail: save JS records per model and use exists if possibleSébastien Theys
This allows get to be simplified to only handle local id. Part of task-2308312 closes odoo/odoo#55346 X-original-commit: fa013d1d29e64706a08499d0f564327766410f8e Related: odoo/enterprise#12159 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-03[FIX] mail: speed up JS models by better using JS languageSébastien Theys
- use Map for _toComputeFields - factorize const access out of loops - avoid Object.entries - introduces `exists` method to avoid costly call to `get` - ensure compute are using update to trigger potential _updateAfter Part of task-2308312 X-original-commit: e364886c2450872a7e42cef549f253b10e55158d
2020-08-03[FIX] mail: speed up insert by using localId instead of findSébastien Theys
Part of task-2308312 X-original-commit: 407dc9796543a27b6695c8d4da922c13dece5b38
2020-07-31[FIX] mail: batch create/insert of JS model for performanceSébastien Theys
PR: #55261 Part of task-2308312 closes odoo/odoo#55266 X-original-commit: eded5f6372d4f1cffd1a361bd8fa7fd8f1f8ae9e Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-15[REF] mail, *: refactor messaging with OWLSébastien Theys
This commit is a significant rewriting of client-side discuss, chatter, chat window, and messaging menu using OWL. The behavior should be broadly the same, with some slight functional changes here and there. From a technical standpoint, the code of messaging is mainly organized in 2 main groups of modules: - models, which are logical entities that depict the client-side state of messaging as a whole. - components, which are in charge of displaying information from models. This refactoring also introduces new JS guidelines regarding folder structure (/static) and naming rules for JS modules. Community PR: https://github.com/odoo/odoo/pull/39023 Enterprise PR: https://github.com/odoo/enterprise/pull/6249 Task-1914207 This PR is a collaborative work by Alexandre, Julien, Sébastien and Xavier, with the precious help of Lucas to speed it up towards the end. closes odoo/odoo#39023 Related: odoo/enterprise#6249 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre Kühn <aku@odoo.com> Co-authored-by: Julien Giannone <jgi@odoo.com> Co-authored-by: Lucas Perais <lpe@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com> Co-authored-by: Xavier Dubuc <xdu@odoo.com>