Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] stock: traceback when there is no delveries for a lot
Fixes 38bfbed We cannot create a `set` from `None` ``` File "/home/odoo/src/odoo/15.0/addons/stock/models/stock_production_lot.py", line 225, in <listcomp> delivery_ids.update(*[set(delivery_by_lot.get(lot_id)) for lot_id in (producing_move_lines.produce_line_ids.lot_id - next_lots).ids]) TypeError: 'NoneType' object is not iterable ``` Small optimization: no need to create a list that's immediately unpacked. This error was detected during upgrades. upg-360084 closes odoo#95398 X-original-commit: 1870ef4 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com> Signed-off-by: Tiffany Chang <tic@odoo.com> Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
- Loading branch information