From cab132c6e95ab38ded57df578efad2c64f5fc052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 24 Mar 2009 12:35:59 +0100 Subject: [PATCH] Add "Write-Off" prefix for account and journal --- invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index 826fcbf28b..0a75263332 100644 --- a/invoice.py +++ b/invoice.py @@ -2006,12 +2006,12 @@ class PayInvoiceAsk(ModelView): ('writeoff', 'Write-Off'), ('partial', 'Partial Payment'), ], 'Type', required=True) - journal_writeoff = fields.Many2One('account.journal', 'Journal', + journal_writeoff = fields.Many2One('account.journal', 'Write-Off Journal', states={ 'invisible': "type != 'writeoff'", 'required': "type == 'writeoff'", }) - account_writeoff = fields.Many2One('account.account', 'Account', + account_writeoff = fields.Many2One('account.account', 'Write-Off Account', domain="[('kind', '!=', 'view'), ('company', '=', company)]", states={ 'invisible': "type != 'writeoff'",