mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms_api_rest: modified the domain in get_partner_invoices
This commit is contained in:
committed by
Darío Lodeiros
parent
0848c0424f
commit
1c8598609f
@@ -285,7 +285,10 @@ class PmsPartnerService(Component):
|
|||||||
)
|
)
|
||||||
def get_partner_invoices(self, partner_id):
|
def get_partner_invoices(self, partner_id):
|
||||||
partnerInvoices = self.env["account.move"].search(
|
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"]
|
PmsAcoountMoveInfo = self.env.datamodels["pms.account.move.info"]
|
||||||
invoices = []
|
invoices = []
|
||||||
|
|||||||
Reference in New Issue
Block a user