diff options
| author | Josse Colpaert <jco@odoo.com> | 2018-04-17 18:23:30 +0200 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2018-04-18 17:42:22 +0200 |
| commit | 8c64159b8847dc465a21415c085d6526d280be02 (patch) | |
| tree | 528a84a82a830c84fb82bb2c19924f51e8e0df11 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 05589db8232a68846cca2660c73914045b1fec5a (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
