Do not remove code when tax is changed on tax line

This prevents to create default tax lines when the required code is filled.

issue6612
review35101002
This commit is contained in:
Cédric Krier committed 2017-07-12 19:26:32 +02:00
1 parent 40de2d11fc
commit e28d67076e
1 file changed
-4
-4
View File
@@ -1135,10 +1135,6 @@ class TaxLine(ModelSQL, ModelView):
return self.move_line.currency_digits
return 2
@fields.depends('tax')
def on_change_tax(self):
self.code = None
@fields.depends('_parent_move_line.account', 'move_line')
def on_change_with_company(self, name=None):
if self.move_line: