Do not remove related_to from statement line when changing the amount
Closes #12176
This commit is contained in:
1 parent
5179e6cd40
commit
4e26c991c7
1 file changed
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user