[IMP] pms_api_rest: modified the domain in get_partner_invoices

This commit is contained in:
Sara Lago
2022-09-15 11:49:39 +02:00
committed by Darío Lodeiros
parent 0848c0424f
commit 1c8598609f

View File

@@ -285,7 +285,10 @@ class PmsPartnerService(Component):
)
def get_partner_invoices(self, partner_id):
partnerInvoices = self.env["account.move"].search(
[("partner_id", "=", partner_id)]
[
("partner_id", "=", partner_id),
("move_type", "in", self.env["account.move"].get_invoice_types()),
]
)
PmsAcoountMoveInfo = self.env.datamodels["pms.account.move.info"]
invoices = []