TIP: You can type at any time to perform a new search.
Product Code Mandatory
product_code_mandatory · OCA/product-attribute
🛠 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 default_code is NULL OR LENGTH(default_code) = 0` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Found by automated static analysis: patterns worth a look before/after upgrading this module to a newer Odoo version.
- 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-20 11:30:00
- Authors
- Odoo Community Association (OCA), Open Source Integrators
- Maintainers
- Odoo Community Association (OCA), Open Source Integrators
- Committers
- Weblate, Franco Leyes, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module sets the field internal reference (default_code) of the product as required.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_normal_form_code_mandatory_view |
product.normal.form.code.mandatory.view | product.product | form | Inherits product.product_normal_form_view |
product_template_only_form_code_mandatory_view |
product.template.only.form.code.mandatory.view | product.template | form | Inherits product.product_template_only_form_view |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (1)
-
default_codeChardefault=<expr>index=True args: 'Internal Reference'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…