Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.1.0
Category
Product
Folder size
0.09 MB
License
LGPL-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
Thierry Ducrest, Weblate, OCA-git-bot, oca-ci, trisdoan
Odoo dependencies
Python dependencies
openupgradelib
System dependencies
None
Required by
product_packaging_calculator_packaging_level, product_packaging_level_salable, product_packaging_level_vendor, shopfloor, shopfloor_reception_packaging_dimension, stock_measuring_device, stock_reserve_rule, stock_vertical_lift_packaging_level
Description
This module binds a product packaging to a packaging level.

There are usually 3 levels:

- The primary: it is the closest to the product, also called the retail
  packaging
- The secondary: it allows to ship the products already in the primary
  packaging, like a box
- The tertiary: it allows to ship large quantities in warehousing, like
  a pallet

This differentiates from the odoo standard package type that is typing
the packaging in a more precise way and that can serve for put-away
routing in the warehouse.

For example a small box and a large box, or an EPAL pallet and CHEP
pallet.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
product_packaging_tree_view product.packaging.tree (in product_packaging_level) product.packaging tree Inherits stock.product_packaging_tree_view
stock_package_type_form stock.package.type.form stock.package.type form Inherits stock.stock_package_type_form
view_product_packaging_add_type_form product.packaging.form product.packaging form Inherits stock.product_packaging_form_view
view_product_packaging_level_form product.packaging.level.form product.packaging.level form New
view_product_packaging_level_list product.packaging.level.list product.packaging.level list New
view_product_packaging_level_search product.packaging.level.search product.packaging.level search New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (6)
  • barcode_required_for_gtin Boolean
    compute='_compute_barcode_required_for_gtin' readonly=True
  • name Char
    compute='_compute_name' readonly=False store=True
  • name_policy Selection
    related='packaging_level_id.name_policy'
  • packaging_level_id Many2one → product.packaging.level
    default=<expr> ondelete='restrict' required=True args: 'product.packaging.level'
  • qty_per_level Char
    compute='_compute_qty_per_level' string='Qty per package level'
  • sequence Integer
    compute='_compute_sequence' readonly=False store=True
Public methods (1)
  • default_packaging_level_id(self)

New fields (8)
  • active Boolean
    default=True
  • code Char
    required=True
  • default_lang_id Many2one → res.lang
    default=<expr> required=True string='Default Language' args: 'res.lang'
  • has_gtin Boolean
  • is_default Boolean
  • name Char
    required=True translate=True
  • name_policy Selection
    default='by_package_level' help="config to set name of product packaging. Three options:- The package level name (default)- The package type name (if groups='stock.group_tracking_lot')- user defined: free text value defined" selection=[('by_package_level', 'Package Level Name'), ('by_package_type', 'Package Type Name'), ('user_defined', 'User Defined')]
  • sequence Integer
    required=True
Public methods (0)

No public methods.

New fields (1)
  • packaging_level_id Many2one → product.packaging.level
    default=<expr> args: 'product.packaging.level'
Public methods (0)

No public methods.

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
228 days ago
Last activity
228 days ago
Repository
OCA/product-attribute
Pull request
[19.0][MIG] product_packaging_level: Migration to 19.0 (#2181)