[MIG] contract_queue_job: Migration to 14.0

This commit is contained in:
Yannis Burkhalter
2022-11-16 14:29:55 +01:00
committed by Luis Rodriguez
parent bcf0e01f49
commit 7191ec6db3
12 changed files with 142 additions and 50 deletions

View File

@@ -1,15 +1,14 @@
# Copyright 2020 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
from odoo import models
class ContractManuallyCreateInvoice(models.TransientModel):
_inherit = "contract.manually.create.invoice"
@api.multi
def create_invoice(self):
def create_invoice_queued(self):
self.ensure_one()
self.contract_to_invoice_ids._recurring_create_invoice()
return {}