Name:
[IMP] point_of_sale: hide decimals for integer quantities on receipts
State:
Killed
PR State:
merged
PR Author:
Roy Le
PR Author Email:
PR:
#1246
Committer:
Roy Le
Committer Email:
roy.le@viindoo.com
Commit:
9531c91c43884274131524b4c82bd9585e4eeb2b
Description:
[IMP] point_of_sale: hide decimals for integer quantities on receipts
Quantities were always formatted with the global 'Product Unit of Measure'
decimal precision, so a quantity of 1 was displayed as 1.000 (with a
3-digit precision) on the order screen and the printed receipt, even for
countable units such as Units/Piece.
Backport the Odoo 19 behavior: whole-number quantities are displayed
without a decimal part, while fractional quantities (e.g. 1.5 kg) keep
the standard precision-based formatting.
Branch:
18.0
Age:
Up-time:
Not finished