fix(pos): mode of payment disappears after save
(cherry picked from commit 69c34cd7ae128dde56cde10c53b479331c33d56f)
This commit is contained in:
parent
69777353bd
commit
c75283265b
@ -439,7 +439,6 @@ class POSInvoice(SalesInvoice):
|
||||
self.paid_amount = 0
|
||||
|
||||
def set_account_for_mode_of_payment(self):
|
||||
self.payments = [d for d in self.payments if d.amount or d.base_amount or d.default]
|
||||
for pay in self.payments:
|
||||
if not pay.account:
|
||||
pay.account = get_bank_cash_account(pay.mode_of_payment, self.company).get("account")
|
||||
|
Loading…
x
Reference in New Issue
Block a user