summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2017-08-09 14:52:39 +0200
committerSimon Lejeune <sle@openerp.com>2017-08-25 16:10:19 +0200
commit72ff51f565f17d2420d1d574b7cde3be915ad42d (patch)
tree31a2d0d2706eab76886a941cfab606cc2fa6a47d /addons/web/static/src/js/views/basic/basic_controller.js
parent0ec73fa9c56cf3579901baca2d2ed9837588d67d (diff)
[REF] stock: product: _compute_quantities
This method is used to set `qty_available`, `virtual_available`, `incoming_qty` and `outgoing_qty`. We change the depends because only looking on stock.move is enough (all changes on quants are made through stock moves, and we de not support to edit directly quants anyway). This method will call `_get_domain_locations` and we make sure that, when the `company_owned` key is present in the context, we also return domains to find products that are in a location that belongs to the current user's company. This is done in order to include transit location. Also, remove the comment from tde. As these fields are displayed in view, only using the context could alter the behavior.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions