summaryrefslogtreecommitdiff
path: root/addons/link_tracker
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2021-03-01 13:41:35 +0000
committerRémy Voet (ryv) <ryv@odoo.com>2021-03-04 15:03:12 +0000
commit6737feef848dc47120cf3d2cca84e033e869c985 (patch)
tree015d6a4b57452b9345302ef949563ce359bdd880 /addons/link_tracker
parentd43e9cb9ad8d1c0c020209de0e8f6ffdcbc960a1 (diff)
[FIX] stock: fix replenishement with archived RR
If some RR is archived and where the a forecasted demand on the warehouse location, it Replenishement will crash will due to the SQL constraint. It happens because the archived RR aren't take in account in `_get_orderpoint_action` and the method will try to create a orderpoint with same product + location which lead to trigger the SQL constraint `product_location_check`. Also avoid filtered in for loop to improve performance and use the read_group instead. task-2439019 closes odoo/odoo#67263 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/link_tracker')
0 files changed, 0 insertions, 0 deletions