diff options
| author | Stéphane Bidoul (ACSONE) <stephane.bidoul@acsone.eu> | 2019-05-10 17:19:55 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-10-02 15:42:04 +0000 |
| commit | c8c8413e3e86e2abc51ade48f11320de961e5e50 (patch) | |
| tree | 07004cf8d64161b30393ba3f802f346f5d4c29fb /odoo/tools/sql.py | |
| parent | 9d0f172f29085a6b164313bf20178270b9572cc2 (diff) | |
[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: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'odoo/tools/sql.py')
0 files changed, 0 insertions, 0 deletions
