mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] contract_sale_generation: Migration to 16.0
This commit is contained in:
@@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user