[IMP] base: restrict decimal precision name changes
The names of the decimal precision shouldn't be modified as this field is used as reference in the code. Modifying (e.g. translating) the name of a decimal precision will disable the precision, always using 2 as precision fallback when the specified precision is not found.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<form string="Decimal Precision">
|
||||
<sheet>
|
||||
<group col="4">
|
||||
<field name="name"/>
|
||||
<field name="name" attrs="{'readonly': [('id', '!=', False)]}"/>
|
||||
<field name="digits"/>
|
||||
</group>
|
||||
</sheet>
|
||||
@@ -37,5 +37,3 @@
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user