Skip to content

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

Open
@pcserviceshn

Description

@pcserviceshn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions