Do not remove related_to from statement line when changing the amount

Closes #12176
This commit is contained in:
Cédric Krier
2023-04-01 14:17:25 +02:00
parent 5179e6cd40
commit 4e26c991c7
-1
View File
@@ -892,7 +892,6 @@ class Line(origin_mixin(_states), sequence_ordered(), ModelSQL, ModelView):
self.account = self.party.account_receivable_used
else:
self.account = self.party.account_payable_used
self.invoice = None
@fields.depends('account', methods=['invoice'])
def on_change_account(self):