TIP: You can type at any time to perform a new search.
Sell Only By Packaging
sell_only_by_packaging · OCA/sale-workflow
- Repository
- OCA/sale-workflow · module folder · Try on Runboat
- Module version
- 1.1.0
- Category
- Sales
- Folder size
- 0.07 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/sale-workflow
- Last tracking update
- 2026-08-07 08:42:48
- Authors
- Camptocamp, Odoo Community Association (OCA), BCIM
- Maintainers
- Camptocamp, Odoo Community Association (OCA), BCIM
- Committers
- Simone Orsi, Alexandre Fayolle, Weblate, OCA-git-bot, oca-ci, trisdoan
- Odoo dependencies
- Python dependencies
- openupgradelib
- System dependencies
- None
- Required by
- product_set_sell_only_by_packaging
- 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).
Code Analysis ⓘ
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_qtyBooleanhelp='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'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
min_sellable_qtyFloatcompute='_compute_variant_min_sellable_qty'help='Minimum sellable quantity, according to the available packagings, if Only Sell by Packaging is set.'
No public methods.
New fields (2)
-
min_sellable_qtyFloatcompute='_compute_template_min_sellable_qty'help='Minimum sellable quantity, according to the available packagings, if Only Sell by Packaging is set.' -
sell_only_by_packagingBooleancompany_dependent=Truecopy=Falsedefault=Falsehelp='Restrict the usage of this product on sale order lines without packaging defined'string='Only sell by packaging'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…