stock_location_children
in stock-logistics-warehouse · source on GitHub
Add relation between stock location and all its children
Category: Warehouse Management · Camptocamp · AGPL-3
| Series | Status | Details | Code |
|---|---|---|---|
| 16.0 | ✗Install error | Changed ORM / Python API: TypeError: zip() takes · run 2026-08-26 | on GitHub |
| 17.0 | —Not tested | no branch | |
| 18.0 | ✓Installs | · run 2026-08-20 · 18.0.1.0.0 | on GitHub |
| 19.0 | —Not tested | no branch | |
| 20.0 | —Not tested | no branch |
The module’s code on 18.0
| Lines of code | python 174 · xml 22 |
| Tests | yes: 1 file(s), 85 lines |
| Migration scripts | no |
| Models | 0 new · 1 extensions |
| Raw SQL | 1 × cr.execute |
Lines are physical, blanks and comments included, as wc -l. Tests are test_*.py files under tests/. Models are lines holding _name = and _inherit =. These are facts about the code, not a judgement: more lines is neither better nor worse. Measured 2026-08-28 on tree 235872e44388.
The apps.odoo.com catalogue has a listing under the same technical name on 16.0, 18.0: apps.odoo.com/apps/modules/18.0/stock_location_children. A matching name does not prove matching code — how we counted this.
Depends on
| Module | Status | Checked |
|---|---|---|
| stock | core | ships with Odoo |
History
| Last change | 2026-06-25 |
| Code commits, 12 months | 0 |
| Most active | Denis Roussel, Akim Juillerat, Guewen Baconnier |
| Files | 19 |
Translation and bot commits are excluded from the commit count.
Install log 16.0
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 98, in determine
return needle(*args)
File "/mnt/pool/stock_location_children/models/stock_location.py", line 40, in _compute_children_ids
zip(
TypeError: zip() takes no keyword arguments
2026-08-26 22:14:04,154 1 CRITICAL job_e9c9fbfc93d8 odoo.service.server: Failed to initialize database `job_e9c9fbfc93d8`.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1333, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "<decorator-gen-16>", line 2, in new
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 493, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 374, in load_marked_modules
loaded, processed = load_module_graph(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 210, in load_module_graph
registry.init_models(cr, model_names, {'module': package.name}, new_install)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 538, in init_models
func()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1759, in _reflect_relation
self.env.invalidate_all()
File "/usr/lib/python3/dist-packages/odoo/api.py", line 751, in invalidate_all
self.flush_all()
File "/usr/lib/python3/dist-packages/odoo/api.py", line 761, in flush_all
self._recompute_all()
File "/usr/lib/python3/dist-packages/odoo/api.py", line 757, in _recompute_all
self[field.model_name]._recompute_field(field)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 6335, in _recompute_field
field.recompute(records)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1382, in recompute
apply_except_missing(self.compute_value, recs)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1355, in apply_except_missing
func(records)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1404, in compute_value
records._compute_field_value(self)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 4276, in _compute_field_value
fields.determine(field.compute, self)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 98, in determine
return needle(*args)
File "/mnt/pool/stock_location_children/models/stock_location.py", line 40, in _compute_children_ids
zip(
TypeError: zip() takes no keyword argumentsResult looks wrong? Tell us — we will show the log or run it again. Report a wrong result