콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
6 답글
3948 화면

Hi

Someone know how to change decimal precision by custom module in Odoo 8.0?


Thxx a lot

아바타
취소

@EStudios,

I'm also interested in this, specifically for reporting.

If you mean the Decimal Accuracy in settings, then you can change it with get these records ids from src code (XML) of Odoo then change the value

For anyone else reading, i've managed to change decimal precision on QTY fields from one decimal place (ie. 0.0) to no decimal places (ie. 0) using the following expression in python:

' % .f ' %product.packaging_ids.qty

This works specifically for printing product packaging quantity (ie. logistic units) on product catalog reports, however ' % .f ' % in particular should work in other cases as well where the value of the field is actually an integer.

베스트 답변

Your solution is NOT working in warehouse>Products>Procurement>Supplier

The minimal qty will show 1,00 and can not be changed by changing those parameters


아바타
취소
작성자 베스트 답변

Tomasz 

I need a module, because I'm looking automatically customization.

아바타
취소
베스트 답변

Hi, 

You don't need a custom module for it. You have it by default in Odoo For language related reports printing Go to Settings > Translations > Languages

Other decimal settings you've got in Settings > Configuration > Warehouse - Decimal precision on weight

For other units of measure you can set it up in:

Sales > Configuration > Units of Measure - Rounding Precision

아바타
취소