[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:
Victor Feyens
2020-11-27 16:10:01 +00:00
parent 048927f845
commit 02e7d0f47d
@@ -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>