-
- Downloads
[FIX] stock_account:make cogs multi_company safe
Goal:
The aim of this commit is to make the cogs generation multi-company
safe.
Context:
Considering the situation in which company A has set a product P with
a real time valuation and company B didn't set the real time valuation
or has set it to manual;
Considering the user has selected both company in the switcher;
The user post an invoice for the product P.
Before this commit:
There isn't any cogs created for the invoice which is wrong.
After this commit:
Whatever the selected companies are, the cost selected will always be from
the company that created the invoice.
closes odoo/odoo#81348
Task: #2713607
Signed-off-by:
Laurent Smet <las@odoo.com>
Please register or sign in to comment