summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_cheatsheet.rst
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2019-10-31 12:21:32 +0000
committerfw-bot <otis@odoo.com>2019-11-04 11:16:31 +0000
commit7e81616ae8dd39cac899f6b566c3a94478a1b7d5 (patch)
tree30f359da3577923be815dd3eb4d08cde00e25974 /doc/reference/javascript_cheatsheet.rst
parent9019645a5d17cb5bc92dfe792c4cbab9c2d202f6 (diff)
[FIX] stock: product quantity with force company and location
Usecase to reproduce: - Set warehouse as 3 steps delivery - On pack rule set the procure method as 'take from stock if enough or trigger another rule' - Do an inventory adjustement of a product and set 10 units in pack zone - Do a delivery order for this product with only 1 unit. It will create the delivery order from stock to pack even if the quantity in pack was sufficient. It's due to [1] that introduce a new function but if the force company and location (with an integer) are both set in the domain it will select the wrong ids. It will take all the location in the company + the location in the context. However if a location is explicitly given to the context, it should only consider the stock at this location. [1] commit 330b99f60c0fcc09e2438a1958d11bf7e1383d8d opw-2090384 closes odoo/odoo#39726 X-original-commit: e77d9fc735d845bbb0b5562c359fbf2354d72f0e Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'doc/reference/javascript_cheatsheet.rst')
0 files changed, 0 insertions, 0 deletions