diff options
| author | Simon Lejeune <sle@openerp.com> | 2017-11-08 09:43:42 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-11-14 17:36:52 +0100 |
| commit | 48f4ce4afa1a213cf5e66d1f34f4f2ee4351b2e5 (patch) | |
| tree | f3f447668708b0bfbe690fcb1ac95ce63a4cef69 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 20c19560cd7f8c5403c5e764091cb664f5f27eb1 (diff) | |
[FIX] stock_account: the quantity to value depends on the sublocations
We can imagine a scenario into which the main stock location (wh/stock)
is set as a view location to force people to put things in the
sublocations. Since the stock_account refactoring, only the location of
the stock move is considered to know if the locations should be valued
and, if so, the quantity to value. It is problematic since a view
location shouldn't be valued, but if its move lines put or take things
to or from a valued location to a non valued one, the valuation
mechanism should run.
We now introduce these specifications to handle this kind of usecase
correctly:
- the authority to get the price_unit is on the stock move
- the authority to now how much quantity should be valued is delegated
to the move lines.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
