Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16.0 mig pos_to_weight_by_product_uom (from 12.0) #1127

Merged
merged 27 commits into from
Jan 30, 2024

Conversation

legalsylvain
Copy link
Contributor

Description

At the moment, when we create a new product and choose the unity of measure kg, we have to tick the checkbox 'To Weigh With Scale' in the Point of Sale part.

We want to speed the process of creating a new product, avoiding filling manually this parameter.

This module adds the field 'To Weigh With Scale' in UOM categories (set to false by default). If checked, all products created with a related Unit will be 'To Weigh With Scale', by default.

Configure

  • active settings "Allow using different units of measure" in Settings > Configuration > Sales > Quotations and Sales Orders > Product Features

  • During the creation of a category, tick the box 'To Weigh With Scale'.

uom_category_form

Note: During the installation, the UoM Category 'Weight' is checked.

Usage

You're able to change this field for a specific product (in Sales tab).

product_form

Quentin Dupont and others added 27 commits January 12, 2024 21:30
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/
Currently translated at 100.0% (8 of 8 strings)

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/pt/
Currently translated at 37.5% (3 of 8 strings)

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/ca/
Currently translated at 100.0% (8 of 8 strings)

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/
Currently translated at 100.0% (8 of 8 strings)

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/ca/
Currently translated at 100.0% (8 of 8 strings)

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_to_weight_by_product_uom
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_to_weight_by_product_uom/
- REM : remove various useless code (demo group, development status, etc...)
- IMP : Handle create and write use cases.
- ADD : Tests.
- IMP : hook, to initialize 'Weight' UoM Category, and check 'to_weight' on all related product templates
- REF : Rename 'to_weigh' field into 'to_weight' field, to match odoo nomenclature.
- UPD : readme and screenshots
@legalsylvain legalsylvain force-pushed the 16.0-mig-pos_to_weight_by_product_uom branch from 4227404 to 42d8196 Compare January 12, 2024 22:56
@legalsylvain legalsylvain changed the title 16.0 mig pos_to weight_by_product_uom (from 12.0) 16.0 mig pos_to_weight_by_product_uom (from 12.0) Jan 12, 2024
@legalsylvain
Copy link
Contributor Author

/ocabot migration pos_to_weight_by_product_uom

CC : @quentinDupont, @hparfr

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jan 12, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 12, 2024
37 tasks
Copy link
Contributor

@ivantodorovich ivantodorovich left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@quentinDupont quentinDupont left a comment

Choose a reason for hiding this comment

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

Code review and functional test ✔️

@OCA-git-bot
Copy link
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). 🤖

@legalsylvain
Copy link
Contributor Author

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-1127-by-legalsylvain-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jan 30, 2024
Signed-off-by legalsylvain
@OCA-git-bot
Copy link
Contributor

@legalsylvain your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-1127-by-legalsylvain-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@legalsylvain
Copy link
Contributor Author

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1127-by-legalsylvain-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 5f53f68 into OCA:16.0 Jan 30, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 5d545ad. Thanks a lot for contributing to OCA. ❤️

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.