diff options
| author | Rémy Voet (ryv) <ryv@odoo.com> | 2021-03-01 13:41:35 +0000 |
|---|---|---|
| committer | Rémy Voet (ryv) <ryv@odoo.com> | 2021-03-04 15:03:12 +0000 |
| commit | 6737feef848dc47120cf3d2cca84e033e869c985 (patch) | |
| tree | 015d6a4b57452b9345302ef949563ce359bdd880 /addons/link_tracker | |
| parent | d43e9cb9ad8d1c0c020209de0e8f6ffdcbc960a1 (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
