Skip to content
Snippets Groups Projects
Commit 76385173 authored by Abdelouahab (abla)'s avatar Abdelouahab (abla)
Browse files

[FIX] account : fixing type of journal_id

the `write` method from `AccountMove` class and its children
expect `journal_id` in `vals` to be an `int` and not an `account.journal`.

linked PR : https://github.com/odoo/enterprise/pull/26515



opw-2794392

closes odoo/odoo#89854

Related: odoo/enterprise#26515
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 2221f014
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ class TestSequenceMixin(AccountTestInvoicingCommon):
for i in range(6)
)
(invoice + invoice2 + refund + refund2).write({
'journal_id': self.company_data['default_journal_sale'],
'journal_id': self.company_data['default_journal_sale'].id,
'partner_id': 1,
'invoice_date': '2016-01-01',
})
......
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