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

Merged

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
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-1014-by-etobella-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 5650c8c into OCA:18.0 Feb 15, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c9085db. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

5 participants