[IMP] account_payment_order: Pass single move in a get_account_payment_domain mehtod to find move in a method.

This commit is contained in:
AmmarOfficewalaSerpentCS
2021-07-09 13:41:08 +05:30
parent 1d48c2188a
commit 9e4fb17954

View File

@@ -84,7 +84,7 @@ class AccountMove(models.Model):
raise UserError(_("No Payment Mode on invoice %s") % move.name)
for payment_mode in payment_modes:
payorder = apoo.search(
self.get_account_payment_domain(payment_mode), limit=1
move.get_account_payment_domain(payment_mode), limit=1
)
new_payorder = False
if not payorder: