Files
odoo_source/addons
Josse Colpaert 8c64159b88 [FIX] stock_account: valuation report needs company_owned in context
When calculating the stock_value of a product,
the system will take into account all the locations
that have this company as company.  (that way if owner_id
is not set, the company_id on the location is the owner (virtual: not set))

The Qty on Hand field takes into account however
the quantities that are in the warehouses.

This could lead to weird situations where the Quantity On Hand is 0
and so the record is not shown, while the stock value is positive.
(e.g. stock in Transit)

In order to use the same logic for both fields, we pass company_owned=True
in the context.
2018-04-18 17:42:22 +02:00
..
2017-12-19 16:22:17 +01:00
2017-12-19 16:22:17 +01:00
2017-12-19 16:22:17 +01:00
2017-12-19 16:22:17 +01:00
2017-12-19 16:22:17 +01:00
2017-12-19 16:22:17 +01:00
2017-12-19 16:22:17 +01:00