Add "Write-Off" prefix for account and journal

This commit is contained in:
Cédric Krier committed 2009-03-24 12:35:59 +01:00
1 parent 8e928af919
commit cab132c6e9
1 file changed
+2 -2
+2 -2
View File
@@ -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'",