From 4236fe33edaca204c88dbcc9f7f3ce2e24364c67 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Mon, 30 Dec 2019 15:11:14 +0100 Subject: [PATCH] [12.0][FIX] - Set contract line analytic account at contract creation from SO --- product_contract/models/sale_order_line.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product_contract/models/sale_order_line.py b/product_contract/models/sale_order_line.py index 6f55f5c4..4f29da01 100644 --- a/product_contract/models/sale_order_line.py +++ b/product_contract/models/sale_order_line.py @@ -154,6 +154,7 @@ class SaleOrderLine(models.Model): 'contract_id': contract.id, 'sale_order_line_id': self.id, 'predecessor_contract_line_id': predecessor_contract_line_id, + 'analytic_account_id': self.order_id.analytic_account_id.id, } @api.multi