production_lot_custom_attributes
production_lot_custom_attributes · OCA/product-attribute
-
Security25/25No findings
-
Activity0/25Last human commit 122 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
lot_form_view_set_button— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceopen_lot_by_attribute_set— Class 'open_lot_by_attribute_set' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcestock_production_lot— Class 'stock_production_lot' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcestock_production_lot— Migrating to 16.0: the web client no longer calls `fields_view_get`: override `_get_view` instead. migration-fields-view-get · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv.orm`) (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.orm`) 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
Production lot custom attributes
This module adds the possibility to easily create custom fields on stock production lots. Each lot can be linked to an attribute set. Each attribute has custom fields (for example, you don't need the same field for a fridge and a camera). In particular it's used by the Magento Magentoerpconnect module to match the EAV flexibility of Magento. This module is inspired by the module product_custom_attributes by Benoît GUILLOT, Akretion
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
lot_attributes_form_view |
lot.attributes.normal.wizard | stock.production.lot | form | New |
lot_form_view_set_button |
attributes.lot.normal.form | stock.production.lot | form | Inherits stock.view_production_lot_form |
open_lot_by_attribute_set_view |
open.lot.by.attribute.set.view | open.lot.by.attribute.set | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
open_lot_by_attribute(self, cr, uid, ids, context=None)Opens a lot by attributes Returns a custom action built modifying the original one.
No new fields.
Public methods (3)-
fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False) -
open_attributes(self, cr, uid, ids, context=None)Open the attributes of an object This method is called when the user presses the Open Attributes button in the form view of the object. It opens a dinamically-built form view. :param ids: this is normally a singleton. If a longer list is passed, we consider only the first item. -
save_and_close_lot_attributes(self, cr, uid, ids, context=None)
Loading…
Loading…
Loading…
Loading…