From 2468899215d4bbeef24f2b40cb909c1457404ab8 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli <nim@odoo.com> Date: Tue, 21 Jan 2020 13:14:51 +0000 Subject: [PATCH] [FIX] stock_account: no analytic info on COGS - Create a FIFO product, Automated - Make some stock - Create a SO, add the product - On the SO, add an analytic account - Validate the picking, create the invoice => the analytic info are propagated to the invoice, as expected - Validate the invoice The analytic info is propagated on the COGS entries, in particular the the output account, which is incorrect. opw-2008567 closes odoo/odoo#43684 X-original-commit: e831868fe648d3a3a4981a1cf9c135e4e4102279 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com> --- addons/stock_account/models/product.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/stock_account/models/product.py b/addons/stock_account/models/product.py index ce8d1359b0df..41a73f490097 100644 --- a/addons/stock_account/models/product.py +++ b/addons/stock_account/models/product.py @@ -548,8 +548,6 @@ class ProductProduct(models.Model): 'account_id': dacc, 'product_id': product.id, 'uom_id': uom.id, - 'account_analytic_id': account_analytic and account_analytic.id, - 'analytic_tag_ids': analytic_tags and analytic_tags.ids and [(6, 0, analytic_tags.ids)] or False, }, { -- GitLab