diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-02-05 15:05:34 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2019-02-07 09:05:19 +0000 |
| commit | c47dc928f6ec67f0e76c8b7907d7f62ae2452d89 (patch) | |
| tree | b2263ea7910a3b72987a10f23280923e10b85a57 /addons/web/static/src | |
| parent | 37220d02a4d86e0f9a1d4658770a2d673605de13 (diff) | |
[FIX] stock: warehouse_selectable skip warehouse_ids
Usecase to reproduce:
- Create a route with a warehouse_ids
- Uncheck warehouse_selectable on route
- Create a picking that use the route
It should fail since the route is not applicable.
It happens because _search_rule only check for route with warehouse_ids
but it do not check for warehouse_selectable. We can't fix _search_rule
since stock_warehouse.py creates multi step delivery and reception
routes without warehouse_selectable thus it would break existing configuration.
Instead create an onchange on warehouse_selectable that remove
warehouse_ids on route.
partial backport of commit a35df8d37170790257876a54aa54f2c3ab596c44
closes odoo/odoo#30844
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
