[FIX]pms_api_rest: compute suppliet payments types api pms

This commit is contained in:
Darío Lodeiros
2022-11-07 10:00:21 +01:00
parent c33362d754
commit 7b7571eae4

View File

@@ -28,7 +28,7 @@ class AccountPayment(models.Model):
else:
record.pms_api_transaction_type = "customer_outbound"
elif record.partner_type == "supplier":
if record.payment_type == "inbound":
if record.payment_type == "outbound":
record.pms_api_transaction_type = "supplier_outbound"
else:
record.pms_api_transaction_type = "supplier_inbound"