mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_api_rest: compute suppliet payments types api pms
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user