ca6a874a17d18cfb88a1f4de312f8c41a916b453
CONTEXT Followup of odoo/odoo@2d791e8afe (posting, notifying and composer / template link code cleaning) and odoo/odoo@0b8d4c0eb1 (composer fields, template sync and values generation cleaning). RATIONALE Naming conventions * content = core message / subject (+ other fields); * email layout = layouting applied to messages when sent to recipients who receive notifications by email e.g. access button, ...; * comment mode / mailing mode: composer main composition mode: posting on record(s) / sending a mailing on records; Content situation when using a template on the composer * comment, monorecord mode: choose a template, content is rendered directly from template side according to 'lang' field definition -> ok; * comment, multirecord mode / mailing mode: choose a template, content is the raw content. At post / send, content is rendered on composer side. As composer is not translated -> no translation -> ko; Email layout situation when posting / mailing * comment, monorecord model, using a template from UX: layout is partly translated based on template 'lang' field to match the content translation. Part of the layout still uses the current user lang; * other comment use cases: layout is translated based on current user; * mailing mode: layout not supported; EXPECTED SITUATION Content situation when using a template to post on a composer * comment, monorecord mode: choose a template, content is rendered directly from template side according to 'lang' field definition -> ok; * comment, multirecord mode / mailing mode: choose a template, content is the raw content. At post / send, content is rendered and translated if matching template content -> ok; Email layout situation when posting / mailing * comment: layout translated based on recipient lang or fallback on template 'lang' field definition, or current user's lang; * mailing: support layout through composer, use template 'lang' field definition or fallback on current user's lang; For more details, see sub commits with their detailed explanations. LINKS Task-3046371 (Mail: Better Language Support in Composer) Task-2742033 (Mail: Use recipient lang in template contextual action) Task-2555155 (Mail: Translate notification action/access buttons) Task-3186426 (Mail: Support notification layout in template / email composer) closes odoo/odoo#106177 Related: odoo/enterprise#37296 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%