Sales Product Set Sell only by packaging
product_set_sell_only_by_packaging · OCA/sale-workflow
Replaces
sale_product_set_sale_by_packaging (18.0) Health
47/100
poor
-
Security25/25No findings
-
Activity12/25Last human commit 19 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
3 models
3 views
0 HTTP endpoints
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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)