diff options
| author | Denis Roussel <denis.roussel@acsone.eu> | 2020-12-01 15:50:26 +0000 |
|---|---|---|
| committer | Denis Roussel <denis.roussel@acsone.eu> | 2020-12-01 17:18:17 +0000 |
| commit | e87cf96f29b05e475d1aa693c20c7f05ce2833c9 (patch) | |
| tree | 12da53e0a7a0049c96a3aab80483be16cd3884af | |
| parent | 50ebca958ab5ab0ea6ab1ec2a54ce8fad488b17a (diff) | |
[FIX] stock: Allow to write on multiple warehouses
If we try to write on a multi recordset warehouses, we
get a singleton error
closes odoo/odoo#62704
X-original-commit: fc46f26d392d8d9fb499de98d89ce9cef84729a4
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
| -rw-r--r-- | addons/stock/models/stock_warehouse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/stock_warehouse.py b/addons/stock/models/stock_warehouse.py index 669f72c52ea..fb05a367ecf 100644 --- a/addons/stock/models/stock_warehouse.py +++ b/addons/stock/models/stock_warehouse.py @@ -801,8 +801,8 @@ class Warehouse(models.Model): def _update_reception_delivery_resupply(self, reception_new, delivery_new): """ Check if we need to change something to resupply warehouses and associated MTO rules """ - input_loc, output_loc = self._get_input_output_locations(reception_new, delivery_new) for warehouse in self: + input_loc, output_loc = warehouse._get_input_output_locations(reception_new, delivery_new) if reception_new and warehouse.reception_steps != reception_new and (warehouse.reception_steps == 'one_step' or reception_new == 'one_step'): warehouse._check_reception_resupply(input_loc) if delivery_new and warehouse.delivery_steps != delivery_new and (warehouse.delivery_steps == 'ship_only' or delivery_new == 'ship_only'): |
