mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[14.0][IMP] contract: Add explicit cron create type for invoices
This commit is contained in:
@@ -636,7 +636,7 @@ class ContractContract(models.Model):
|
|||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def cron_recurring_create_invoice(self, date_ref=None):
|
def cron_recurring_create_invoice(self, date_ref=None):
|
||||||
return self._cron_recurring_create(date_ref)
|
return self._cron_recurring_create(date_ref, create_type="invoice")
|
||||||
|
|
||||||
def action_terminate_contract(self):
|
def action_terminate_contract(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
|
|||||||
Reference in New Issue
Block a user