[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#107875 X-original-commit: 47999e7b1c9a52059f84abaafeac388f2991a621 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -74,6 +74,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]
|
||||
|
||||
Reference in New Issue
Block a user