Products Customer Code
product_customer_code · OCA/product-attribute
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
product_customer_code— Class 'product_customer_code' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceproduct_customer_code— Class 'product_customer_code' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceproduct_customer_code— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceproduct_product— Class 'product_product' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceproduct_product— Class 'product_product' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_product_customer_code_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · 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
Customer' codes in product
This module does just like the product.supplierinfo but for customers instead. For instance it allows to have different references for the same product according to the customer.
.. image:: product_customer_code/static/src/img/screenshot1.png
.. tip::
You will need install some of the Apps which enable the product menu to see this module in
action, like Sales, Purchase or Warehouse Management
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_normal_form_inh_product_customer_code_01 |
product.normal.form.inh.product.customer.code.01 | product.product | form | Inherits product.product_normal_form_view |
view_product_customer_code_form |
view.product.customer.code.form | product.customer.code | form | New |
view_product_customer_code_search |
view.product.customer.code.certificate.search | product.customer.code | search | New |
view_product_customer_code_tree |
view.product.customer.code.tree | product.customer.code | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
copy(self, cr, uid, id, default=None, context=None) -
name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=80)
Loading…
Loading…
Loading…