Skip to Content
Menu
This question has been flagged
1 Reply
2165 Views

 Hello I want to set total invoice in the footer of the tree view 
For example :250.275.25 ==> 250.275.250
How to Do that
NB: I use the backend theme module
you can see the last comment in this forum to see a photo 
https://github.com/odoo/odoo/issues/21686​

Avatar
Discard
Best Answer

Hi,

Activate Developer mode Go to Settings -> Database Structure -> Decimal Accuracy to change decimal precision in Odoo  refer this link or use digits in field declaration in py file for this

example: total = fields.float('Total ', digits=(16,4)) 

you can give the value according to your need,if you need 1.000 change it to (16,3) if needed 1.00 then change it to (16,2).

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 22
1736
2
Aug 22
5986
1
Nov 21
7406
1
Sep 21
5007
1
Mar 21
3622