[MIG] contract_invoice_start_end_dates: Migration to 16.0

This commit is contained in:
Jesús Feliciano Valdez Cruz [Vauxoo]
2023-05-14 20:12:18 +00:00
parent 15369abdbb
commit fd12bd4b9e
3 changed files with 8 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ from odoo import models
class ContractLine(models.Model):
_inherit = "contract.line"
def _prepare_invoice_line(self, move_form):
vals = super()._prepare_invoice_line(move_form=move_form)
def _prepare_invoice_line(self):
vals = super()._prepare_invoice_line()
if self.product_id.must_have_dates:
dates = self._get_period_to_invoice(
self.last_date_invoiced, self.recurring_next_date