Skip to content
Snippets Groups Projects
Commit 24688992 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[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: e831868f
Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 7e5a7245
No related branches found
No related tags found
No related merge requests found
...@@ -548,8 +548,6 @@ class ProductProduct(models.Model): ...@@ -548,8 +548,6 @@ class ProductProduct(models.Model):
'account_id': dacc, 'account_id': dacc,
'product_id': product.id, 'product_id': product.id,
'uom_id': uom.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,
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment