[MIG] contract_sale_generation: Migration to 16.0

This commit is contained in:
Jesús Feliciano Valdez Cruz [Vauxoo]
2023-05-28 02:02:12 +00:00
parent 6876de0563
commit d71473aa92
5 changed files with 15 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ class ContractLine(models.Model):
)
order_line.order_id = sale
# Get other order line values from product onchange
order_line.product_id_change()
order_line._onchange_product_id_warning()
sale_line_vals = order_line._convert_to_write(order_line._cache)
# Insert markers
name = self._insert_markers(dates[0], dates[1])
@@ -48,7 +48,6 @@ class ContractLine(models.Model):
{
"sequence": self.sequence,
"name": name,
"analytic_tag_ids": [(6, 0, self.analytic_tag_ids.ids)],
"price_unit": self.price_unit,
}
)