Product Pack
product_pack · OCA/product-pack
Health
95/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 8 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.16 MB
Module directory on disk
Code analysis
0 migration notes
4 models
5 views
0 HTTP endpoints
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- purchase_product_pack, sale_product_pack, stock_product_pack
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
nan_product_pack_form |
product.product.pack.form | product.product | form | Inherits product.product_normal_form_view |
product_pack_line_form |
product.pack.line.form | product.pack.line | form | New |
product_pack_line_tree |
product.pack.line.tree | product.pack.line | list | New |
product_template_form_view |
product.template.pack.form | product.template | form | Inherits product.product_template_form_view |
product_template_only_form_view |
product.template.pack.form | product.template | form | Inherits product.product_template_only_form_view |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (3)
-
parent_product_idMany2one → product.productindex=Trueondelete='cascade'required=True args: 'product.product', 'Parent Product' -
product_idMany2one → product.productindex=Trueondelete='cascade'required=True args: 'product.product', 'Product' -
quantityFloatdefault=1.0digits='Product Unit'required=True
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
pack_line_idsOne2many → product.pack.linehelp='Products that are part of this pack.' args: 'product.pack.line', 'parent_product_id', 'Pack Products' -
used_in_pack_line_idsOne2many → product.pack.linehelp='Packs where product is used.' args: 'product.pack.line', 'product_id', 'Found in packs'
-
get_pack_lines(self)Returns the content (lines) of the packs. By default, return all the pack_line_ids, but that function can be overloaded to introduce filtering function by date, etc... -
split_pack_products(self)
New fields (7)
-
pack_component_priceSelectionhelp="On sale orders or purchase orders:\n* Detailed per component: Detail lines with prices.\n* Totalized in main product: Detail lines merging lines prices on pack (don't show component prices).\n* Ignored: Use product pack price (ignore detail line prices)." args: [('detailed', 'Detailed per component'), ('totalized', 'Totalized in main product'), ('ignored', 'Ignored')] -
pack_line_idsOne2manyrelated='product_variant_ids.pack_line_ids' -
pack_modifiableBooleanhelp='If you check this field yo will be able to edit sale/purchase order line relate to its component' -
pack_modifiable_invisibleBooleancompute='_compute_pack_modifiable_invisible'help='Technical field in order to compute the availability of the Pack Modifiable field' -
pack_okBooleanhelp='Is a Product Pack?' args: 'Is Pack?' -
pack_typeSelectionhelp='On sale orders or purchase orders:\n* Detailed: Display components individually in the sale order.\n* Non Detailed: Do not display components individually in the sale order.'string='Pack Display Type' args: [('detailed', 'Detailed'), ('non_detailed', 'Non Detailed')] -
used_in_pack_line_idsOne2manyreadonly=Truerelated='product_variant_ids.used_in_pack_line_ids'
-
onchange_pack_type(self)@api.onchange('pack_type', 'pack_component_price') -
split_pack_products(self)Split products and the pack in 2 separate recordsets. :return: [packs, no_packs] -
write(self, vals)We remove from product.product to avoid error.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…