Add missing move_line in depends of on_change_with_company

Tax line can be set from its own form without being a child of a move line.

issue4900
review16521002
This commit is contained in:
Cédric Krier committed 2015-08-10 11:12:03 +02:00
1 parent 45187af7b1
commit 562e022a0c
1 file changed
+1 -1
+1 -1
View File
@@ -1194,7 +1194,7 @@ class TaxLine(ModelSQL, ModelView):
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