Browse Source

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 10 years ago
parent
commit
79798cb9f7
  1. 7
      account_journal_report_xls/wizard/print_journal_wizard.py

7
account_journal_report_xls/wizard/print_journal_wizard.py

@ -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…
Cancel
Save