Purchase Packaging
purchase_packaging · OCA/purchase-workflow
OCA/stock-logistics-warehouse 9.0–10.0 → OCA/purchase-workflow 13.0
Health
54/100
fair
-
Security25/25No findings
-
Activity6/25Last human commit 34 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.18 MB
Module directory on disk
Code analysis
1 migration note
5 models
4 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE purchase_order_line SET product_purchase_qty = product_qty WHERE product_qty IS NOT NULL` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_supplierinfo_view_form_inherit_purchase_packaging |
product.supplierinfo.form.view (purchase_packaging) | product.supplierinfo | form | Inherits product.product_supplierinfo_form_view |
product_supplierinfo_view_tree_inherit_purchase_packaging |
product.supplierinfo.tree.view" (purchase_packaging) | product.supplierinfo | tree | Inherits product.product_supplierinfo_tree_view |
purchase_order_line_view_form_inherit_purchase_packaging |
purchase.order.line.form (purchase_packaging) | purchase.order.line | form | Inherits purchase.purchase_order_line_form2 |
purchase_order_view_form_inherit_purchase_packaging |
purchase.order.form (purchase_packaging) | purchase.order | form | Inherits purchase.purchase_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (3)
-
min_qty_uom_idMany2one → uom.uomdefault=_default_min_qty_uom_idrequired=True args: 'uom.uom', 'Minimal Unit of Measure Quantity' -
packaging_idMany2one → product.packagingargs: 'product.packaging', 'Logisitical Units' -
product_uomMany2onecompute='_compute_product_uom'related=Falsestring='Supplier Unit of Measure'
No public methods.
New fields (5)
-
packaging_idMany2one → product.packagingargs: 'product.packaging', 'Packaging' -
product_purchase_qtyFloatdefault=<expr>digits='Product Unit of Measure'required=True args: 'Purchase quantity' -
product_purchase_uom_idMany2one → uom.uomdefault=_default_product_purchase_uom_idrequired=True args: 'uom.uom', 'Purchase Unit of Measure' -
product_qtyFloatcompute='_compute_product_qty'copy=Falseinverse='_inverse_product_qty'readonly=Falsestore=Truestring='Quantity' -
product_qty_neededFloatdigits='Product Unit of Measure' args: 'Quantity Needed'
-
create(self, vals_list)@api.model_create_multi -
onchange_product_id(self)@api.onchange('product_id')set domain on product_purchase_uom_id and packaging_id set the first packagigng, purchase_uom and purchase_qty -
update_vals(self, vals)@api.modelWhen packaging_id is set, uom_id is readonly, so we need to reset the uom value in the vals dict -
update_vals_list(self, vals_list)@api.model -
write(self, vals)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
reference_uom_idMany2one → uom.uomcomodel_name='uom.uom'compute='_compute_reference_uom_id' -
uom_idsOne2many → uom.uomcomodel_name='uom.uom'inverse_name='category_id'
No public methods.
Loading…
Loading…