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

[18.0][FIX] sequence_check_digit: fix ValueError: Expected singleton #1014

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

Ricardoalso
Copy link

was causing a ValueError: Expected singleton

Traceback (most recent call last):
  File "/odoo/external-src/server-ux/sequence_check_digit/models/ir_sequence.py", line 38, in check_check_digit_formula
    self.get_next_char(0)
  File "/odoo/external-src/server-ux/sequence_check_digit/models/ir_sequence.py", line 66, in get_next_char
    self.ensure_one()
  File "/odoo/src/odoo/models.py", line 6212, in ensure_one
    raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: ir.sequence(12, 13)

was causing a ValueError: Expected singleton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants