TIP: You can type at any time to perform a new search.
Product Variant Weight
product_variant_weight · OCA/product-variant
Security findings
Migration considerations
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.addons` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE product_product SET weight = product_template.weight FROM product_template WHERE product_template.id = product_product.product_tmpl_id AND (product_product.weight = 0 OR product_product.weight IS NULL);` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE product_product SET weight_net = product_template.weight FROM product_template WHERE product_template.id = product_product.product_tmpl_id AND (product_product.weight_net = 0 OR product_product.weight_net IS NULL);` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/product-variant · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Product Management
- Folder size
- 0.04 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.tecnativa.com
- Last tracking update
- 2026-08-07 07:03:09
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- GitHub, Stéphane Bidoul (ACSONE), Weblate, Alex Comba, OCA Transbot, oca-travis, sergio-incaser, Sergio Incaser
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Code Analysis
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (2)
-
weightFloatdigits=dp.get_precision('Stock Weight')help='The gross weight in Kg.'string='Gross Weight' -
weight_netFloatdigits=dp.get_precision('Stock Weight')help='The net weight in Kg.'string='Net Weight'
-
create(self, vals)@api.model
New fields (0)
No new fields.
Public methods (2)-
create(self, vals)@api.model -
write(self, vals)@api.multi