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/3751pull/28/head
parent
4a55f36be9
commit
79798cb9f7
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue