Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.0 / 16.0] Unable to validate multiple transfers together having different operation types (Singleton Error) #1396

Open
baguenth opened this issue Nov 18, 2024 · 0 comments
Labels

Comments

@baguenth
Copy link
Member

Module

quality_control_stock_oca

Describe the bug

We received an expected singleton error.

Raised the singleton issue when trying to validate multiple pickings (transfers) together having different operation types

File "manufacture/quality_control_stock_oca/models/stock_picking.py", line 59, in action_done
[("picking_type_id", "=", self.picking_type_id.id)]
File "/home/ubuntu/dev/development/odoo/odoo/fields.py", line 3687, in get
raise ValueError("Expected singleton: %s" % record)
ValueError: Expected singleton: stock.picking.type(942, 912, 911)

To Reproduce

Steps to reproduce the behavior:

  1. Create multiple transfers, and each transfer must have different operation types.
  2. Then validate these transfers together ( picking_ids.action_done() )

Expected behavior

Enable to validate multiple transfers together having different operation types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant