Odoo Help


How to change eg. quantity of 50.0000 to 50 in qWeb invoice?

on 4/4/16, 2:50 AM 353 views

When unit in invoice has 4 decimal eg.  it can be 9.9999 but when no decimal I wish to print without .0000 how can I change qweb report  for this?

NIyas Raphy
On 2/10/17, 6:56 AM

<t t-set="temp_value" t-value="original_variable_of_float_value%1"></t>

<t t-if="(temp_value === 0)">

     <t t-set="original_variable_of_float_value" t-value="int(original_variable_of_float_value)"></t>


On 4/4/16, 3:29 AM

Login with admin privilege, 1 Activate Technical Mode, 2 Refresh the web page, 3 Navigate to Technical section, 4 Click on Database Structure, 5 Click on Decimal Accuracy, 6 You should see Product Unit of Measure, 7 Click on it, 8 Click on Edit, 9 Change the Value to 1 from 4 then save.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/4/16, 2:50 AM
Seen: 353 times
Last updated: 2/10/17, 6:56 AM