From 7c175a6caa3c5ec8cc50592c15dff33db208b0b1 Mon Sep 17 00:00:00 2001 From: "psi (Open ERP)" Date: Mon, 14 Feb 2011 18:15:21 +0530 Subject: [PATCH] [FIX] account_voucher: set attrs invisible on fields and buttons while being called from account bank statement lp bug: https://launchpad.net/bugs/713116 fixed bzr revid: psi@tinyerp.co.in-20110214124521-ksyhai8r9tf4366i --- addons/account_voucher/account_voucher.py | 2 +- .../voucher_payment_receipt_view.xml | 37 ++++++++++--------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 5b662a960c5..398830705e7 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -759,7 +759,7 @@ class account_voucher(osv.osv): else: account_id = inv.partner_id.property_account_payable.id move_line = { - 'name': name, + 'name': inv.comment and inv.comment or name, 'account_id': account_id, 'move_id': move_id, 'partner_id': inv.partner_id.id, diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml index 20c73bb9797..b62cba19d65 100644 --- a/addons/account_voucher/voucher_payment_receipt_view.xml +++ b/addons/account_voucher/voucher_payment_receipt_view.xml @@ -151,16 +151,17 @@
- - + + - - - + + + @@ -245,10 +246,10 @@ -