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
pull/28/head
Guewen Baconnier 2014-11-19 13:16:46 +01:00
parent 4a55f36be9
commit 79798cb9f7
1 changed files with 7 additions and 2 deletions

View File

@ -33,7 +33,12 @@ 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',
'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',