summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/form_view.js
AgeCommit message (Collapse)Author
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>
2020-01-14[IMP] mail: attachment counter on chatter without message_idsIpsita Borisagar
Before this commit, chatter without messages did not display attachment counter, even though attachments could be uploaded from attachment box. This commit now displays the attachment counter in this case. Task-Id 2149348 closes odoo/odoo#42672 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-06-14[FIX] mail: message_attachment_count can be explicit in form viewLucas Perais (lpe)
Before this commit, it was not possible to have the field message_attachment_count explicitly defined in the form view. It crashed inelegantly if it were the case After this commit, it is possible to have that field in the form view OPW 1998503 closes odoo/odoo#34143 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2018-09-17[REF] mail: update related_attachment_count field name to match mixin namespace.ThanhDodeurOdoo
Reason: The Attachment count of mail_thread is used by the new attachment button of the chatter, the compute field has been chosen over a search_count JS RPC to keep a synchronous chatter and prevent flickering. This commit refactors those changes to follow the naming conventions of mail_thread and to optimize the count method for eventual reuse follwing TDE's advices. - Changed the name of a mail_thread's related_attachment_count into message_attachment_count. - Changed the count method to a read_group. PR: 26989 Task: 1860031
2018-09-13[IMP] mail: new attachment button in the chatterThanhDodeurOdoo
- Added a new button to the chatter that displays the amount of attachments on the current record and when clicked, all the attachments attached to the current record - added mail.FormView (includes), used by the chatter attachment button to fetch the field value of attachment_count. - added a computed field "attachment_count" to mail.thread that contains the amount of attachment attached to the record. - changed the followers div, it is now sharing a "right side" area with the attachment button. task: 1860031