diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 57ab234fb8d..f4fde5f24ae 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -710,7 +710,7 @@ class account_voucher(osv.osv): move_line = { 'journal_id': inv.journal_id.id, 'period_id': inv.period_id.id, - 'name': line.name and line.name or '/', + 'name': line.name or '/', 'account_id': line.account_id.id, 'move_id': move_id, 'partner_id': inv.partner_id.id, @@ -754,6 +754,7 @@ class account_voucher(osv.osv): account_id = False if inv.payment_option == 'with_writeoff': account_id = inv.writeoff_acc_id.id + name = inv.comment elif inv.type in ('sale', 'receipt'): account_id = inv.partner_id.property_account_receivable.id else: 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 @@ -