Skip to content

[19.0][ADD] purchase_uom_discrete#3109

Open
yankinmax wants to merge 1 commit into
OCA:19.0from
camptocamp:add-purchase_uom_discrete
Open

[19.0][ADD] purchase_uom_discrete#3109
yankinmax wants to merge 1 commit into
OCA:19.0from
camptocamp:add-purchase_uom_discrete

Conversation

@yankinmax

Copy link
Copy Markdown
Contributor

Discrete and countable units cannot be split. Fractional values are meaningful
for continuous measures like weight, volume, length, or time, but not for
countable items such as units, boxes, or laptops.

This module rounds purchase order line quantities using Unit based UoMs UP to
the next whole number. UoMs that do not share the Unit(s) reference, such as kg,
liters, meters, or hours, keep fractional quantities.

This is only a purchase order form onchange helper, with no ORM-level create or
write enforcement, so users and integrations can still keep a fractional
quantity when it is intentionally applicable.

@OCA-git-bot OCA-git-bot added series:19.0 mod:purchase_uom_discrete Module purchase_uom_discrete labels Jun 17, 2026
@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants