Allow to modify tax lines from canceled invoice for issue1214
This commit is contained in:
+1
-1
@@ -1890,7 +1890,7 @@ class InvoiceTax(ModelSQL, ModelView):
|
||||
Check if the taxes can be modified
|
||||
'''
|
||||
for tax in self.browse(cursor, user, ids, context=context):
|
||||
if tax.invoice.state in ('open', 'paid', 'cancel'):
|
||||
if tax.invoice.state in ('open', 'paid'):
|
||||
self.raise_user_error(cursor, 'modify',
|
||||
context=context)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user