sale_line_returned_qty
in stock-logistics-workflow · source on GitHub
Track returned quantity of sale order lines.
Category: Sales · ForgeFlow · LGPL-3
| Series | Status | Details | Code |
|---|---|---|---|
| 16.0 | ✓Installs | · run 2026-08-21 · 16.0.1.0.0 | on GitHub |
| 17.0 | —Not tested | no branch | |
| 18.0 | ✓Installs | · run 2026-08-20 · 18.0.1.0.0 | on GitHub |
| 19.0 | ✓Installs | · run 2026-09-04 · 19.0.1.0.0 | on GitHub |
| 20.0 | —Not tested | no branch |
Odoo 20.0 dev — development line
A different statement from the table above. There: the module as published, on a released platform. Here: the module’s code with its manifest version mechanically raised, on a platform that has not been released and changes daily.
| Status | Details |
|---|---|
| ✗fails | The same code installs on 19.0; on the development line it does not. The difference belongs to the platform. (registry) · version 19.0.1.0.0 → 19.5.1.0.0, code unchanged · run 2026-09-10 · odoo 19.5 · modidx/odoo:master-deps-20260910 |
Log excerpt, 20.0 dev
2026-09-10 19:58:25,189 1 INFO job_84c49dd754dd odoo.registry: Caches invalidated, signaling through the database: ['default', 'stable']
2026-09-10 19:58:25,192 1 INFO job_84c49dd754dd odoo.modules.loading: Module spreadsheet_dashboard_sale loaded in 0.22s, 39 queries (+39 other)
2026-09-10 19:58:25,192 1 INFO job_84c49dd754dd odoo.modules.loading: Loading module sale_line_returned_qty (65/65)
2026-09-10 19:58:25,232 1 INFO job_84c49dd754dd odoo.registry: module sale_line_returned_qty: creating or updating database tables
2026-09-10 19:58:25,744 1 WARNING job_84c49dd754dd odoo.modules.loading: Transient module states were reset
2026-09-10 19:58:25,746 1 ERROR job_84c49dd754dd odoo.registry: Failed to load registry
2026-09-10 19:58:25,746 1 CRITICAL job_84c49dd754dd odoo.service.server: Failed to initialize database `job_84c49dd754dd`.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1559, in preload_registries
registry = Registry.new(dbname, update_module=update_module, install_modules=config['init'], upgrade_modules=config['update'], reinit_modules=config['reinit'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 67, in locked
return func(inst, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 222, in new
contextvars.Context().run(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 446, in load_modules
load_module_graph(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 188, in load_module_graph
registry.init_models(env.cr, model_names, {'module': package.name}, update_operation == 'install')
File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 846, in init_models
func()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 67, in mark_modified
records.modified(fnames)
File "/usr/lib/python3/dist-packages/odoo/orm/models.py", line 6301, in modified
todo = [self._modified([self._fields[fname] for fname in fnames], create)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/models.py", line 6353, in _modified
tree = self.pool.get_trigger_tree(fields, select=select)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 641, in get_trigger_tree
if field in self._field_triggers
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/functools.py", line 995, in __get__
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 735, in _field_triggers
dependencies = list(field.resolve_depends(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/fields.py", line 950, in resolve_depends
raise ValueError(
ValueError: Wrong @depends on '_compute_qty_returned' (compute method of field sale.order.line.qty_returned). Dependency field 'scrap_id' not found in model stock.move.
2026-09-10 19:58:25,760 1 INFO job_84c49dd754dd odoo.service.server.ThreadedServer: Initiating shutdown
2026-09-10 19:58:25,761 1 INFO job_84c49dd754dd odoo.service.server.ThreadedServer: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-10 19:58:25,761 1 INFO job_84c49dd754dd odoo.addons.bus.websocket: Disconnecting 0 websockets
2026-09-10 19:58:25,864 1 INFO job_84c49dd754dd odoo.sql_db: ConnectionPool(read/write;used=0/count=0/max=64): Closed 1 connectionsProvenance: __manifest__.py sha256 bac246b7f95ba791… · tree of 16 files without the manifest, sha256 0cf1e604810bdc9b…
This does not say the module is compatible with Odoo 20.0, and does not say it installs on Odoo 20.0 — on a stock platform it will not, until its maintainer raises the version. Why we raise the version
Odoo 20.0 — the branch itself
The same frozen code, run again against the real 20.0 branch. The run above used Odoo’s development line before the branch was cut; this one used the branch, pinned to one commit.
| Status | Details |
|---|---|
| ✗fails | The same code installs on 19.0; on the development line it does not. The difference belongs to the platform. (registry) · version 19.0.1.0.0 → 20.0.1.0.0, code unchanged · run 2026-09-18 · odoo 20.0 · modidx/odoo:20.0-deps-20260918 |
Log excerpt, 20.0 dev
2026-09-18 15:48:10,677 1 INFO job_6c2818da4f25 odoo.registry: Caches invalidated, signaling through the database: ['default', 'stable']
2026-09-18 15:48:10,678 1 INFO job_6c2818da4f25 odoo.modules.loading: Module spreadsheet_dashboard_sale loaded in 0.22s, 39 queries (+39 other)
2026-09-18 15:48:10,678 1 INFO job_6c2818da4f25 odoo.modules.loading: Loading module sale_line_returned_qty (65/65)
2026-09-18 15:48:10,722 1 INFO job_6c2818da4f25 odoo.registry: module sale_line_returned_qty: creating or updating database tables
2026-09-18 15:48:11,111 1 WARNING job_6c2818da4f25 odoo.modules.loading: Transient module states were reset
2026-09-18 15:48:11,113 1 ERROR job_6c2818da4f25 odoo.registry: Failed to load registry
2026-09-18 15:48:11,113 1 CRITICAL job_6c2818da4f25 odoo.service.server: Failed to initialize database `job_6c2818da4f25`.
Traceback (most recent call last):
File "/opt/odoo/odoo/service/server.py", line 1520, in preload_registries
registry = Registry.new(dbname, update_module=update_module, install_modules=config['init'], upgrade_modules=config['update'], reinit_modules=config['reinit'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/tools/func.py", line 67, in locked
return func(inst, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/registry.py", line 222, in new
contextvars.Context().run(
File "/opt/odoo/odoo/modules/loading.py", line 449, in load_modules
load_module_graph(
File "/opt/odoo/odoo/modules/loading.py", line 188, in load_module_graph
registry.init_models(env.cr, model_names, {'module': package.name}, update_operation == 'install')
File "/opt/odoo/odoo/orm/registry.py", line 846, in init_models
func()
File "/opt/odoo/odoo/addons/base/models/ir_model.py", line 67, in mark_modified
records.modified(fnames)
File "/opt/odoo/odoo/orm/models.py", line 6317, in modified
todo = [self._modified([self._fields[fname] for fname in fnames], create)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/models.py", line 6369, in _modified
tree = self.pool.get_trigger_tree(fields, select=select)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/registry.py", line 641, in get_trigger_tree
if field in self._field_triggers
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/functools.py", line 995, in __get__
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/registry.py", line 735, in _field_triggers
dependencies = list(field.resolve_depends(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/fields.py", line 950, in resolve_depends
raise ValueError(
ValueError: Wrong @depends on '_compute_qty_returned' (compute method of field sale.order.line.qty_returned). Dependency field 'scrap_id' not found in model stock.move.
2026-09-18 15:48:11,121 1 INFO job_6c2818da4f25 odoo.service.server.ThreadedServer: Initiating shutdown
2026-09-18 15:48:11,122 1 INFO job_6c2818da4f25 odoo.service.server.ThreadedServer: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-18 15:48:11,122 1 INFO job_6c2818da4f25 odoo.addons.bus.websocket: Disconnecting 0 websockets
2026-09-18 15:48:11,224 1 INFO job_6c2818da4f25 odoo.sql_db: ConnectionPool(read/write;used=0/count=0/max=64): Closed 1 connectionsProvenance: __manifest__.py sha256 bac246b7f95ba791… · tree of 16 files without the manifest, sha256 0cf1e604810bdc9b…
This does not say the module is compatible with Odoo 20.0, and does not say it installs on Odoo 20.0 — on a stock platform it will not, until its maintainer raises the version. Why we raise the version
The apps.odoo.com catalogue has a listing under the same technical name on 16.0, 18.0, 19.0: apps.odoo.com/apps/modules/19.0/sale_line_returned_qty. A matching name does not prove matching code — how we counted this.
Depends on
| Module | Status | Checked |
|---|---|---|
| sale_stock | core | ships with Odoo |
Result looks wrong? Tell us — we will show the log or run it again. Report a wrong result