From a37b87e332435b46872c3309cbc6627c04f3d016 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Tue, 14 Sep 2010 19:28:56 +0530 Subject: [PATCH] [FIX]: fix a small problem in checking condition, fix journla name in report bzr revid: mga@tinyerp.com-20100914135856-szlljw9opp8k0jep --- addons/account_voucher/report/report_voucher.rml | 2 +- addons/account_voucher/voucher.py | 4 ++-- addons/account_voucher/voucher_view.xml | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/account_voucher/report/report_voucher.rml b/addons/account_voucher/report/report_voucher.rml index ee40fb2..e19019f 100755 --- a/addons/account_voucher/report/report_voucher.rml +++ b/addons/account_voucher/report/report_voucher.rml @@ -167,7 +167,7 @@ Journal: - [[ voucher.type ]] + [[ voucher.journal_id.name ]] Number: diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py index 4215c08..52734ac 100644 --- a/addons/account_voucher/voucher.py +++ b/addons/account_voucher/voucher.py @@ -268,9 +268,9 @@ class account_voucher(osv.osv): 'value':{}, } - if not journal_id or not journal_id: + if not partner_id or not journal_id: return default - + partner_pool = self.pool.get('res.partner') journal_pool = self.pool.get('account.journal') diff --git a/addons/account_voucher/voucher_view.xml b/addons/account_voucher/voucher_view.xml index f8de8ba..39c6202 100644 --- a/addons/account_voucher/voucher_view.xml +++ b/addons/account_voucher/voucher_view.xml @@ -42,8 +42,8 @@ - - + + @@ -52,8 +52,8 @@ - - + + -- 1.7.10.4