Skip to content
Snippets Groups Projects
Commit c8c8413e authored by Stéphane Bidoul's avatar Stéphane Bidoul Committed by Thibault Delavallée
Browse files

[IMP] mail: enforce kw args for message_{post/notify/log}


Since there are message_post overrides using the form `def message_post(self,
**kwargs)` in some modules, this method is intended to be invoked with keyword
arguments only.

This commit enforces this behavior. Calls such as `message_post("body")` will
fail regardless of which addon is installed, forcing users to use
`message_post(body="body")`.

It also fixes a message_post override in hr, and applies the same
mechanism to message_notify, and _message_log.

closes odoo/odoo#33306

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 9d0f172f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment