Skip to content
Health
47/100
poor
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 19 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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 IDNameModelTypeStatus
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_packaging Boolean
    related='product_id.sell_only_by_packaging'
Public methods (1)
  • cron_check_packaging(self)
    @api.model
    Ensure 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_tocheck Boolean
    compute='_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'
Public methods (1)
  • action_view_product_set_lines_to_check(self)