[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#43690 X-original-commit: e831868fe648d3a3a4981a1cf9c135e4e4102279 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -565,8 +565,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,
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user