Skip to content
Snippets Groups Projects
Commit 47999e7b authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] payment: Wrong use of write method on not stored field


Steps to reproduce the issue:

- Accounting > Configuration > Journals
- Click on Journal
- View metadata of Journal

Bug:

Even if no modification has been made to the journal, it marked current time
in Latest Modification By/Date

opw:3089551

closes odoo/odoo#107816

Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
parent 2d13c244
Branches
Tags
No related merge requests found
......@@ -68,6 +68,4 @@ class AccountJournal(models.Model):
if vals['mode'] == 'unique' and not available:
to_remove.append(payment_method.id)
journal.write({
'available_payment_method_ids': [Command.unlink(payment_method) for payment_method in to_remove]
})
journal.available_payment_method_ids = [Command.unlink(payment_method) for payment_method in to_remove]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment