summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_api.rst
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2019-12-02 11:12:56 +0100
committerGitHub <noreply@github.com>2019-12-02 11:12:56 +0100
commit73e3ad91597646f920830715946fec629224f521 (patch)
tree18049ec2a94b7da7d0890bae10c8d35c2d01d427 /doc/reference/javascript_api.rst
parent9b3de324783fc0a2305237756328f6a141c8ee6e (diff)
parent69ccabb212d83bfee60c7dade36ca4b06f9f2f12 (diff)
[MERGE] mail: clean mail.mail creation flows and make this model more private
From now on mail.mail is considered as a technical model. Indeed people should not really manually craft mails by hand. Instead various functional flows should either send mails, either craft mails based on some user input. We therefore make mail restricted to admin users. Flows creating mail.mail are updated to use sudo, and ensure it was done in a context that makes sense to delegate this power to the user. Some cleaning is performed prior to that change of ACLs, done in separate commits. This cleaning includes * ease the use of mail.thread tool method _message_compute_author by cleaning its api (return tuple instead of dict); * give a way to access to company email and catchall with formatting. Those will be used in various automated emails. Indeed currently several templates use either ``company_id.partner_id.email``, ``company_id.email`` or even don't provide fallback values; * improve mail creation calls, notably author and email from default computation. Purpose is to correctly compute author_id and email_from in mail_message and mail_mail as they depends from each other. Moreover it is a good idea in various flows to specify email and author when giving creation values to avoid default computation that is not always guaranteed to be accurate notably when involving super user; * improve author / email_from synchronization in default values in mail composer; * clean some calls to mail.template send_mail(); Task ID 1853147 PR #32243 Related: odoo/enterprise#4001 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'doc/reference/javascript_api.rst')
0 files changed, 0 insertions, 0 deletions