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

smile_decimal_precision Error in Multi Currency Environment (Expected Singleton on res.currency) #119

Open
pcserviceshn opened this issue Mar 18, 2024 · 0 comments

Comments

@pcserviceshn
Copy link

module: smile_decimal_precision
version: 16.0

Steps to reproduce

  • Install the module on Odoo 16 CE with multi currency activated and at least 2 currency active

Current behavior
--Serve Error
** Error Log**
File "/usr/lib/python3/dist-packages/odoo/addons/smile_decimal_precision/models/res_currency.py", line 18, in _get_display_decimal_places
if not self.display_rounding:
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1131, in get
record.ensure_one()
File "/usr/lib/python3/dist-packages/odoo/models.py", line 5115, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: res.currency(44, 2)

Expected behavior
Normal Operation and use of the module

@pcserviceshn pcserviceshn changed the title Error in Multi Currency Environment (Expected Singleton on res.currency) smile_decimal_precision Error in Multi Currency Environment (Expected Singleton on res.currency) Mar 18, 2024
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

No branches or pull requests

1 participant