Add missing move_line in depends of on_change_with_company

FIX issue4311 patch with issue4900
This commit is contained in:
Raimon Esteve 2017-04-27 11:53:30 +02:00
parent d96545675f
commit cab40f73c5
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ diff -r d57626d6cf3e -r 42b9acc4c201 tax.py
def on_change_tax(self):
self.code = None
+ @fields.depends('_parent_move_line.account')
+ @fields.depends('_parent_move_line.account', 'move_line')
+ def on_change_with_company(self, name=None):
+ if self.move_line:
+ return self.move_line.account.company.id