Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
The Question has been closedby
We are using decimal accuracy 3 for UOM for UOMs like kg, Now every UOM is shown as 10.000 in OpenERP and this leads to confusions in UOM like PCE.
Is there a way to show PCE UOM as just 10 and Kg as 10.321 at the same time in openerp ?
The above statement is correct for changing the number of decimals for all UOM.
However if you wish to remove the decimals for a specific UOM, like PCE. This can be accomplished by modify the report motor and the report, in this case the invoice.
First modify file
Change header in
def formatLang to:
def formatLang(self, value, digits=None, date=False, date_time=False, grouping=True, monetary=False, dp=False, currency_obj=False, rstrip=False):
Add at the end before return res in
if rstrip: res=res.rstrip('0').rstrip('.').rstrip(',')
In the invoice report:
[[ formatLang(l.quantity, rstrip=True) ]]
This will remove the right ending "0" and the ".".
Example the 10.000 PCE will become 10 PCE and 1.200 kg will become 1.2 kg on the report.
It's not possible with standart options of OpenERP.
This option is possible only for all UOM.
- Install module decimal_precision.
- Check checkbox Technical Features in Settings / Users / Users page Access Rights.
- Go to Settings / Technical / Database Structure / Decimal Accuracy, open Product Unit of Measure and change the field Digits to your needs.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/12/13, 6:41 PM|
|Seen: 3502 times|
|Last updated: 3/16/15, 8:10 AM|