odoo_addons icon indicating copy to clipboard operation
odoo_addons copied to clipboard

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

Open pcserviceshn opened this issue 11 months ago • 0 comments

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 avatar Mar 18 '24 04:03 pcserviceshn