CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I got a problem with the decimal accuracy in a quantity field, when i go to database/structure/decimal_accuracy and set the accuracy to '0' of the product unit of mesaure it doesn't work on the report, the module show me the field with the accuracy to for example 5 and the printed report 5.00. i think it's strange cause when a i set accuracy to 3 or x number of decimals the report show me the value 5.000 but it doesn't work with 0. Any ideas?
i get a solution add this python validation to the rml file in the qty field. it will be something like this: [[ ' % .f ' % product_qty]] this set the float as an integer, then will be show in the pdf file. the database/structure/decimal_accuracy only affects the field decimal accuracy showed in the UI.
Hope this will be useful to other of you. Regards.
About This Community
Odoo Training Center
|Asked: 8/9/14, 1:08 PM|
|Seen: 1184 times|
|Last updated: 8/17/15, 12:13 PM|