From 79798cb9f7a8ed33185cbbe7a5759df55c1f07b9 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Wed, 19 Nov 2014 13:16:46 +0100 Subject: [PATCH] If the relation table and fields are not explicit, they are created on the wrong table (the base model from which the model _inherit) See https://github.com/odoo/odoo/issues/3751 --- .../wizard/print_journal_wizard.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/account_journal_report_xls/wizard/print_journal_wizard.py b/account_journal_report_xls/wizard/print_journal_wizard.py index 6c4f9df7..cc2ab4a2 100644 --- a/account_journal_report_xls/wizard/print_journal_wizard.py +++ b/account_journal_report_xls/wizard/print_journal_wizard.py @@ -33,8 +33,13 @@ class account_print_journal_xls(orm.TransientModel): _name = 'account.print.journal.xls' _description = 'Print/Export Journal' _columns = { - 'journal_ids': fields.many2many('account.journal', string='Journals', - required=True), + 'journal_ids': fields.many2many( + 'account.journal', + 'account_print_journal_xls_journal_rel', + 'journal_xls_id', + 'journal_id', + string='Journals', + required=True), 'group_entries': fields.boolean( 'Group Entries', help="Group entries with same General Account & Tax Code."),