diff --git a/addons/stock/models/stock_orderpoint.py b/addons/stock/models/stock_orderpoint.py index b989d1f522c88..3dcf9722e3c45 100644 --- a/addons/stock/models/stock_orderpoint.py +++ b/addons/stock/models/stock_orderpoint.py @@ -475,7 +475,7 @@ def _unlink_processed_orderpoints(self): ('qty_to_order', '<=', 0) ] if self.ids: - expression.AND([domain, [('ids', 'in', self.ids)]]) + domain = expression.AND([domain, [('id', 'in', self.ids)]]) orderpoints_to_remove = self.env['stock.warehouse.orderpoint'].with_context(active_test=False).search(domain) # Remove previous automatically created orderpoint that has been refilled. orderpoints_to_remove.unlink() diff --git a/doc/cla/corporate/camptocamp.md b/doc/cla/corporate/camptocamp.md index 390bb60a87b05..5e69efd81821f 100644 --- a/doc/cla/corporate/camptocamp.md +++ b/doc/cla/corporate/camptocamp.md @@ -54,3 +54,4 @@ Victor Vermot-Petit-Outhenin victor.vermot@camptocamp.com https://github.com/vic Sarah Jallon sarah.jallon@camptocamp.com https://github.com/sarsurgithub Ricardo Almeida Soares ricardo.almeidasoares@camptocamp.com https://github.com/ricardoalso Italo Lopes italo.lopes@camptocamp.com https://github.com/imlopes +Paolo Yammouni paolo.yammouni@camptocamp.com https://github.com/paoloyam \ No newline at end of file