Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd

Hi,

I want to change the decimal precision to 4 decimal point in account.move.line in odoo10. please find screenshot( https://prnt.sc/os3l6r ).
could you please advise me how to do this.

Thanks in advance!

Avatar
Annuleer
Beste antwoord

Goto Technical Settings -> Database Structure -> Decimal Accuracy and change the digits of related precision. This will change all decimal precisions used in your instance. (Which is used while defining fields.). So better to define new decimal precision and add it with your related fields.

You can use attribute digits while defining fields. eg:

discount = fields.Float(..... , digits=5)

or 

define precision as XML data and reuse it whenever needed.


<record forcecreate="True" id="decimal_payroll_rate" model="decimal.precision">
<field name="name">Payroll Rate</field>
<field name="digits">4</field>
</record>

rate = fields.Float(...... , digits=dp.get_precision('Payroll Rate'))


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
dec. 23
1044
1
sep. 23
2081
0
feb. 19
2842
0
sep. 24
1281
1
aug. 24
1182