Test if parent_line account is set when computing tax line company
issue7219 review39221002
This commit is contained in:
@@ -1181,7 +1181,7 @@ class TaxLine(ModelSQL, ModelView):
|
||||
|
||||
@fields.depends('_parent_move_line.account', 'move_line')
|
||||
def on_change_with_company(self, name=None):
|
||||
if self.move_line:
|
||||
if self.move_line and self.move_line.account:
|
||||
return self.move_line.account.company.id
|
||||
|
||||
def get_rec_name(self, name):
|
||||
|
||||
Reference in New Issue
Block a user