Skip to content

[16.0][FIX] pos_tare: product packaging compatible - #1609

Open
mihien wants to merge 1 commit into
OCA:16.0from
coopiteasy:16.0-fix-pos_tare-product-packaging
Open

mihien wants to merge 1 commit into
OCA:16.0from
coopiteasy:16.0-fix-pos_tare-product-packaging

Conversation

@mihien

@mihien mihien commented Sep 14, 2026

Copy link
Copy Markdown

Currently when scanning a packaging, the packaging quantity is not correctly handled and defaults to 1.

This PR add a condition that if the product scanned is a packaging, it should not be handled as a weighted product.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @Fkawala, @legalsylvain,
some modules you are maintaining are being modified, check this out!

Currenlty when scanning a packaging, the packaging quantity is not
correctly handled and defaults to 1.

This commit adds a condition that if the product scanned is a packaging,
it should not be handled as a weighted product
@mihien
mihien force-pushed the 16.0-fix-pos_tare-product-packaging branch from ecee1ca to 9cb37d7 Compare September 14, 2026 14:30

@huguesdk huguesdk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good catch, thanks for the fix! lgtm, but please add a comment above the added code explaining why it is there.

note: there is a typo in the commit message: Currenlty → Currently. but i think the commit message shouldn’t be that verbose with a “Currently… (…) This commit…”. something like this would be clear enough:

[FIX] pos_tare: fix conflict with product packaging

ensure that barcode scans of products packages work correctly instead of
having the quantity set to 1.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants