Allow to modify tax lines from canceled invoice for issue1214

This commit is contained in:
Cédric Krier
2009-10-06 14:27:30 +02:00
parent f4f54e5b14
commit ebf6bffe08
+1 -1
View File
@@ -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