mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_move_line_tax_editable: more robust check
This commit is contained in:
@@ -21,4 +21,4 @@ class AccountMoveLine(models.Model):
|
||||
@api.multi
|
||||
def _get_is_tax_editable(self):
|
||||
self.ensure_one()
|
||||
return self.move_state in (False, 'draft')
|
||||
return not self.move_id or self.move_id.state == 'draft'
|
||||
|
||||
Reference in New Issue
Block a user