Fix states required for accounts on account.tax for issue496
This commit is contained in:
1 parent
dc5a12f4f8
commit
4726d2a2ad
1 file changed
+2
-2
@@ -495,14 +495,14 @@ class Tax(OSV):
|
||||
help='Keep empty to use the default invoice account',
|
||||
states={
|
||||
'readonly': "type == 'none' or not company",
|
||||
'required': "company",
|
||||
'required': "type != 'none' and company",
|
||||
})
|
||||
credit_note_account = fields.Many2One('account.account', 'Credit Note Account',
|
||||
domain="[('company', '=', company)]",
|
||||
help='Keep empty to use the default credit_note account',
|
||||
states={
|
||||
'readonly': "type == 'none' or not company",
|
||||
'required': "company",
|
||||
'required': "type != 'none' and company",
|
||||
})
|
||||
|
||||
invoice_base_code = fields.Many2One('account.tax.code',
|
||||
|
||||
Reference in new issue
Block a user