[ADD]pms_api_rest: transactions post and get

This commit is contained in:
Darío Lodeiros
2022-11-08 10:03:59 +01:00
parent c6233efe6d
commit 3174d2f707
2 changed files with 89 additions and 3 deletions

View File

@@ -16,6 +16,11 @@ class AccountPayment(models.Model):
help="Transaction type for PMS API",
compute="_compute_pms_api_transaction_type",
)
internal_transfer_id = fields.Many2one(
"account.payment",
string="Internal Transfer Relation",
help="Internal transfer relation",
)
@api.depends("payment_type", "partner_type")
def _compute_pms_api_transaction_type(self):