TIP: You can type at any time to perform a new search.
Product Packaging Unit Price Calculator
product_packaging_unit_price_calculator · OCA/product-attribute
- Repository
- OCA/product-attribute · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Product
- Folder size
- 0.08 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-attribute
- Last tracking update
- 2026-08-07 08:42:54
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Weblate, OCA-git-bot, oca-ci, Khôi (Kiên Kim)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module adds a wizard that allows the user to compute a unit price by selecting a specific product.packaging related to the product and the price of that package. The computation is done based on the quantity qty of product set on the packaging. The wizard is accessible via buttons located in a few different places in the UI - Next to the sale price of the product on the product form - Next to the price of a product supplier info form - Next to the price of price list item in the tree view - Below the fixed price of a price list item When the wizard is saved the value of the unit price located next to the button is updated by the computed unit price of the wizard. The sale price of a product.packaging is displayed in the packaging list on the Inventory page of the product form.
Code Analysis ⓘ
Views touched (6)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_packaging_tree_view2 |
product.packaging.list.view2 | product.packaging | list | Inherits product.product_packaging_tree_view2 |
product_pricelist_item_form_view |
product.pricelist.item.form.inherit | product.pricelist.item | form | Inherits product.product_pricelist_item_form_view |
product_pricelist_item_tree__view_from_product |
product.pricelist.item.list.inherit | product.pricelist.item | list | Inherits product.product_pricelist_item_tree_view_from_product |
product_supplierinfo_form_view |
product.supplierinfo.form.inherit | product.supplierinfo | form | Inherits product.product_supplierinfo_form_view |
product_template_form_view |
product.template.form | product.template | form | Inherits product.product_template_form_view |
view_product_package_price_form |
Product Package Price | product.package.price.wizard | form | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (6)
New fields (11)
-
current_unit_priceFloatcompute='_compute_current_unit_price'digits='Product Price' -
packaging_idsOne2many → product.packagingcompute='_compute_packaging_ids'string='Product Packages' args: 'product.packaging' -
packaging_priceFloatdefault=0.0digits='Product Price' args: 'Package Price' -
product_idMany2one → product.productdefault=<expr> args: 'product.product' -
product_pricelist_item_idMany2one → product.pricelist.itemdefault=<expr> args: 'product.pricelist.item' -
product_supplierinfo_idMany2one → product.supplierinfodefault=<expr> args: 'product.supplierinfo' -
product_tmpl_idMany2one → product.templatedefault=<expr> args: 'product.template' -
product_variant_idsOne2many → product.productrelated='product_tmpl_id.product_variant_ids' args: 'product.product', 'product_tmpl_id' -
selected_packaging_idMany2one → product.packagingdomain="[('product_id', 'in', product_variant_ids)]" args: 'product.packaging' -
unit_priceFloatcompute='_compute_unit_price'digits='Product Price' -
warning_messageChardefault=' 'readonly=True
-
action_set_price(self) -
reset_unit_price(self)
New fields (3)
-
packaging_wizard_priceFloatdigits='Product Price'store=False -
sale_priceFloatcompute='_compute_sale_price'digits='Product Price' -
unit_priceFloatrelated='product_id.list_price'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
open_packaging_price(self)
New fields (0)
No new fields.
Public methods (1)-
open_packaging_price(self)
New fields (0)
No new fields.
Public methods (1)-
open_packaging_price(self)
New fields (0)
No new fields.
Public methods (1)-
open_packaging_price(self)
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 9 days ago
- Last activity
- 9 days ago
- Repository
- OCA/product-attribute
- Pull request
- [19.0][MIG] product_packaging_unit_price_calculator: Migration to 19.0 (#2374)