diff --git a/contract_sale_generation/models/account_analytic_account.py b/contract_sale_generation/models/account_analytic_account.py index 3f0487c5..9a904dc5 100644 --- a/contract_sale_generation/models/account_analytic_account.py +++ b/contract_sale_generation/models/account_analytic_account.py @@ -36,15 +36,15 @@ class AccountAnalyticAccount(models.Model): name = self._insert_markers( line, self.env.context['old_date'], self.env.context['next_date'], date_format) - + sale_line_vals = sale_line._convert_to_write(sale_line._cache) sale_line_vals.update({ 'name': name, 'discount': line.discount, 'price_unit': line.price_unit, - 'product_qty': line.quantity, - 'product_uom_qty': line.quantity, - 'product_uom': line.uom_id.id, + 'product_qty': line.quantity, + 'product_uom_qty': line.quantity, + 'product_uom': line.uom_id.id, }) return sale_line_vals