You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[17.0][18.0] stock_picking_group_by_partner_by_carrier: Problem due to the serialization of the super call in _create_backorder #2001
but the module stock_picking_batch is performing a condition reviewing if you are backordering the whole batch picking (the part any(p not in self for p in picking.batch_id.picking_ids - pickings_to_detach)):
as we are not passing to super the whole recordset, then each picking except the last are detached from the batch picking.
As I don't know the involved module, I can't suggest a solution for not having to serialize the super call. One I'm thinking on is to prepare a dictionary to pass by context with each picking d True/False as values for being checked in the other methods.
Please check @sebalix, as you were the one introducing the problem in b4bcddf
changed the title [-][17.0] stock_picking_group_by_partner_by_carrier: Problem due to the serialization of the super call in `_create_backorder`[/-][+][17.0][18.0] stock_picking_group_by_partner_by_carrier: Problem due to the serialization of the super call in `_create_backorder`[/+]on Jun 26, 2025
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Activity
[FIX] stock_picking_group_by_base: Uninstall hook
jbaudoux commentedon Jun 26, 2025
From what I understand, we should face the same issue on any picking type, even the one that are not deliveries.
Seems to be due to a recent change in odoo code
https://github.com/odoo/odoo/blob/d83801027c9a88b6e4db8166b6e2aad41ed760b9/addons/stock_picking_batch/models/stock_picking.py#L178
[-][17.0] stock_picking_group_by_partner_by_carrier: Problem due to the serialization of the super call in `_create_backorder`[/-][+][17.0][18.0] stock_picking_group_by_partner_by_carrier: Problem due to the serialization of the super call in `_create_backorder`[/+]pedrobaeza commentedon Jun 26, 2025
Thanks, @jbaudoux my intention was to paste that second reference in my issue (I pasted the same twice). Corrected.
jbaudoux commentedon Jun 26, 2025
Shopfloor cluster picking doesn't seem to be affected by this bug https://github.com/OCA/wms/blob/16.0/shopfloor/services/cluster_picking.py#L1168
The batch is not validated and backorders are anyway removed from the batch.
pedrobaeza commentedon Jul 1, 2025
@jbaudoux @sebalix any solution to this problem?
pedrobaeza commentedon Aug 23, 2025
@jbaudoux @sebalix please, this is blocking for #1997
Fix stock_picking_group_by_partner_by_carrier _create_backorder seria…
github-actions commentedon Feb 22, 2026
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.