TIP: You can type at any time to perform a new search.
Unique Product Internal Reference
product_code_unique · OCA/product-attribute
Security findings
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE product_product SET default_code = 'DEFAULT' || nextval('ir_default_id_seq') WHERE id in (SELECT distinct(pp.id) FROM product_product pp INNER JOIN (SELECT default_code, COUNT(*) FROM product_product GROUP BY default_code HAVING COUNT(*)>1 )pp1 on pp.default_code=pp1.default_code or pp.default_code is NULL or LENGTH(pp.default_code) = 0)` - 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-attribute · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Product
- Folder size
- 0.04 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-attribute
- Last tracking update
- 2026-08-25 05:23:49
- Authors
- Odoo Community Association (OCA), Open Source Integrators
- Maintainers
- Odoo Community Association (OCA), Open Source Integrators
- Committers
- Weblate, Ruchir Shukla, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module adds a constraint on the internal reference of the product to make it unique across the database.
Code Analysis
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…