mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
@@ -646,6 +646,8 @@ class ContractContract(models.Model):
|
|||||||
for row in companies_to_invoice:
|
for row in companies_to_invoice:
|
||||||
contracts_to_invoice = self.search(row["__domain"]).with_context(
|
contracts_to_invoice = self.search(row["__domain"]).with_context(
|
||||||
allowed_company_ids=[row["company_id"][0]]
|
allowed_company_ids=[row["company_id"][0]]
|
||||||
|
).filtered(
|
||||||
|
lambda a: not a.date_end or a.recurring_next_date <= a.date_end
|
||||||
)
|
)
|
||||||
invoices |= contracts_to_invoice._recurring_create_invoice(date_ref)
|
invoices |= contracts_to_invoice._recurring_create_invoice(date_ref)
|
||||||
return invoices
|
return invoices
|
||||||
|
|||||||
Reference in New Issue
Block a user