Skip to content
Health
77/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 5 months ago
  • Required by15/25
    1 module depends on it
  • Maturity12/25
    In 2 Odoo series since 16.0

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

Security findings
Grave / minor (static analysis)
Required by
1
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.07 MB
Module directory on disk
Code analysis 0 migration notes 5 models 5 views 0 HTTP endpoints

Description

This module provides different configuration option to manage packagings on sale orders.

The creation/update of sale order line will be blocked (by constraints) if the data on the sale.order.line does not fit with the configuration of the product's packagings.

It's also possible to force the quantity to sell during creation/modification of the sale order line if the "Force sale quantity" is ticked on the packaging and the "Sell only by packaging" is ticked on product.

For example, if your packaging is set to sell by 5 units and the employee fill the quantity with 3, the quantity will be automatically replaced by 5 (it always rounds up).

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

XML IDNameModelTypeStatus
product_packaging_form_view_inherit product.packaging.form.view.inherit product.packaging form Inherits product.product_packaging_form_view
product_packaging_tree_view_inherit product.packaging.list.view.inherit product.packaging list Inherits product.product_packaging_tree_view
product_product_tree_view product.product.list.inherit product.product list Inherits product.product_product_tree_view
product_template_form_view product.template.form.view product.template form Inherits product.product_template_form_view
product_template_tree_view product.template.list.inherit product.template list Inherits product.product_template_tree_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (1)
  • force_sale_qty Boolean
    help='Determine if during the creation of a sale order line, the quantity should be forced with a multiple of the packaging.\nExample:\nYou sell a product by packaging of 5 products.\nWhen the user will put 3 as quantity, the system can force the quantity to the superior unit (5 for this example).' string='Force sale quantity'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • min_sellable_qty Float
    compute='_compute_variant_min_sellable_qty' help='Minimum sellable quantity, according to the available packagings, if Only Sell by Packaging is set.'
Public methods (0)

No public methods.

New fields (2)
  • min_sellable_qty Float
    compute='_compute_template_min_sellable_qty' help='Minimum sellable quantity, according to the available packagings, if Only Sell by Packaging is set.'
  • sell_only_by_packaging Boolean
    company_dependent=True copy=False default=False help='Restrict the usage of this product on sale order lines without packaging defined' string='Only sell by packaging'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…