[IMP]pms: Improvemente relation amount pending folio and payments with invoices linked

This commit is contained in:
Darío Lodeiros
2022-04-15 18:55:27 +02:00
parent ed9bdf4da2
commit e111302f9f
5 changed files with 156 additions and 72 deletions

View File

@@ -162,6 +162,7 @@ class FolioAdvancePaymentInv(models.TransientModel):
if self.partner_invoice_id
else order.partner_invoice_id.id,
"currency_id": order.pricelist_id.currency_id.id,
"folio_ids": [(6, 0, order.ids)],
"payment_reference": order.reference,
"invoice_payment_term_id": order.payment_term_id.id,
"partner_bank_id": order.company_id.partner_id.bank_ids[:1].id,