TIP: You can type at any time to perform a new search.
Sales Product Set Sell only by packaging
product_set_sell_only_by_packaging · OCA/sale-workflow
- Repository
- OCA/sale-workflow · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Sales
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- Yes
- Website
- https://github.com/OCA/sale-workflow
- Last tracking update
- 2026-08-07 08:42:48
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Weblate, OCA-git-bot, oca-ci, trisdoan
- Odoo dependencies
- Python dependencies
- openupgradelib
- System dependencies
- None
- Required by
- None
- Description
Glue module between sell_only_by_packaging and sale_product_set_packaging_qty. If sell_only_by_packaging is ON and there are product set lines without packaging selected, a warning is displayed in the product form and quick link to all involved lines allows to review them.
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_template_form_view |
product.template.form.view | product.template | form | Inherits sell_only_by_packaging.product_template_form_view |
view_product_set_line_search |
product.set.line.search | product.set.line | search | New |
view_product_set_line_tree |
product.set.line.list | product.set.line | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (0)
No new fields.
Public methods (1)-
action_view_product_set_lines_to_check(self)
New fields (1)
-
sell_only_by_packagingBooleanrelated='product_id.sell_only_by_packaging'
-
cron_check_packaging(self)@api.modelEnsure lines are tied to the right packaging. When * packaging cannot be sold anymore * lines are tied to a product that can be sold only by packaging and have no packaging change the packaging on the line to the 1st saleable packaging.
New fields (1)
-
sell_only_by_packaging_prod_set_tocheckBooleancompute='_compute_sell_only_by_packaging_prod_set_tocheck'help='If this flag is ON, it means you have to check all product.set associated with it'
-
action_view_product_set_lines_to_check(self)