Skip to content
Snippets Groups Projects
Commit 84775d1b authored by Adrien Minet's avatar Adrien Minet Committed by Nicolas Lempereur
Browse files

[FIX] base_automation: NewId records are written


How to reproduce the bug ?

- install hr_payroll and web_studio
- in Settings > Technical > Automated Actions, create a new action
linked to the Payslip model
- Go to the Payslip app and generate a payslip by choosing an employee
that has work entries

What is the bug ?

When you create an automated action, you will overwrite the origin write
function of the model. However, the origin write function will still be
called by the new write function.
In the new write function, the records will be filtered according to
their ids. This means that if a record has a NewId, it will not be
handled. This is the bug here since the payslip is under creation.

opw-2781751

closes odoo/odoo#88071

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent d4a8ec96
No related branches found
No related tags found
Loading
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