I need to display the field product_uom_qty under sale.order.line (of Sale order) and quantity under account.invoice.line (of an invoice) as an integer instead of the current floating point.
How can I do it?
Please let me know.
Thanks.
Since you are asking for Odoo 10:
Settings
in Debug
mode.Technical > Database Structure > Decimal Accuracy
click the menu.Product Unit of Measure
and edit it to 0
digits.This will change whenever product_uom_qty
is accessed with Decimal Accuracy
precision, not just Sales Orders.