From 2fce965ddfe0b282075ade41c965dcbe95053392 Mon Sep 17 00:00:00 2001 From: "Hardik Ansodariy (OpenERP)" Date: Tue, 2 Aug 2011 16:10:45 +0530 Subject: [PATCH] [IMP]: set journal item menu to open bzr revid: han@tinyerp.com-20110802104045-2q2cqo3de0eyejtz --- addons/account/account_move_line.py | 2 +- addons/account/wizard/account_move_journal.py | 2 +- addons/account/wizard/account_move_journal_view.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 06a3d8c44e9..414fd49d3fa 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -1049,7 +1049,7 @@ class account_move_line(osv.osv): result['arch'] = xml result['fields'] = self.fields_get(cr, uid, flds, context) return result - + def _check_moves(self, cr, uid, context=None): # use the first move ever created for this journal and period if context is None: diff --git a/addons/account/wizard/account_move_journal.py b/addons/account/wizard/account_move_journal.py index dec34e6e717..99aa83826df 100644 --- a/addons/account/wizard/account_move_journal.py +++ b/addons/account/wizard/account_move_journal.py @@ -78,7 +78,7 @@ class account_move_journal(osv.osv_memory): @return: Returns a dict that contains definition for fields, views, and toolbars """ - res = super(account_move_journal, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar, submenu) + res = super(account_move_journal, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False) if not view_id: return res diff --git a/addons/account/wizard/account_move_journal_view.xml b/addons/account/wizard/account_move_journal_view.xml index 24fe913d179..01795140c69 100644 --- a/addons/account/wizard/account_move_journal_view.xml +++ b/addons/account/wizard/account_move_journal_view.xml @@ -8,7 +8,7 @@ form
- +