From 6a4e31d9fe5d53da1c50813c0bd8a7ca3ee71690 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 26 Sep 2011 19:18:37 +0200 Subject: [PATCH] [FIX] account: make account.report.common's journal_ids column inheritable This is achieved by using implicit naming of SQL names supporting m2m (table and columns), so that m2m fields can be inherited via _inherit without FK problems. bzr revid: odo@openerp.com-20110926171837-pejhibnmgqr5nfj3 --- addons/account/wizard/account_report_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/wizard/account_report_common.py b/addons/account/wizard/account_report_common.py index 7aa4c465e0d..98ac8af80be 100644 --- a/addons/account/wizard/account_report_common.py +++ b/addons/account/wizard/account_report_common.py @@ -35,7 +35,7 @@ class account_common_report(osv.osv_memory): 'filter': fields.selection([('filter_no', 'No Filters'), ('filter_date', 'Date'), ('filter_period', 'Periods')], "Filter by", required=True), 'period_from': fields.many2one('account.period', 'Start Period'), 'period_to': fields.many2one('account.period', 'End Period'), - 'journal_ids': fields.many2many('account.journal', 'account_common_journal_rel', 'account_id', 'journal_id', 'Journals', required=True), + 'journal_ids': fields.many2many('account.journal', string='Journals', required=True), 'date_from': fields.date("Start Date"), 'date_to': fields.date("End Date"), 'target_move': fields.selection([('posted', 'All Posted Entries'),