-
- Downloads
[FIX] stock_account:make cogs multi_company safe
The aim of this commit is to make the cogs generation multi-company
safe.
Before this commit:
When posting an invoice from company B with both company A and B
selected and A being selected as "main", the cost from company A could
be selected instead of cost from company A to create the anglosaxon
lines.
After this commit:
Whatever the selected companies are, the cost selected will always be from
the company that created the invoice.
closes odoo/odoo#79674
Task: #2686104
Signed-off-by:
Laurent Smet <las@odoo.com>
Showing
- addons/point_of_sale/models/pos_order.py 1 addition, 1 deletionaddons/point_of_sale/models/pos_order.py
- addons/sale_mrp/models/account_move.py 1 addition, 1 deletionaddons/sale_mrp/models/account_move.py
- addons/sale_stock/models/account_move.py 2 additions, 3 deletionsaddons/sale_stock/models/account_move.py
- addons/sale_stock/tests/__init__.py 1 addition, 0 deletionsaddons/sale_stock/tests/__init__.py
- addons/sale_stock/tests/test_anglosaxon_account.py 78 additions, 0 deletionsaddons/sale_stock/tests/test_anglosaxon_account.py
- addons/stock_account/models/account_move.py 1 addition, 1 deletionaddons/stock_account/models/account_move.py
- addons/stock_account/tests/test_stockvaluation.py 1 addition, 1 deletionaddons/stock_account/tests/test_stockvaluation.py
Loading
Please register or sign in to comment