Lot Valuation
stock_lot_valuation · OCA/stock-logistics-warehouse
-
Security25/25No findings
-
Activity0/25Last human commit 51 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
change_standard_price— Class 'change_standard_price' still inherits from the old-style `orm.TransientModel` 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 · sourcechange_standard_price— Class 'change_standard_price' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · 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 · sourcestock_production_lot— Class 'stock_production_lot' 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. (4 occurrences in this file) migration-old-api-base · 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 · sourceview_production_lot_form— 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 · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 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`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 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
Stock valuation (standard or average price, ...) based on lots. This module extends standard stock valuation (based on products). Valuing lots allows to have different costs for different lots of the same product.
Usage
Set the 'Lot valuation' flag on product form (used for real time valuation). As for products, lots have 'cost' and 'costing method' fields. Also, a 'Change Standard Price' wizard is available.
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 |
|---|---|---|---|---|
product_normal_form_view |
product_normal_form_view | product.product | form | Inherits stock.view_normal_property_acc_form |
view_change_standard_price |
Change Standard Price | lot.change.standard.price | form | New |
view_production_lot_form |
view_production_lot_form | stock.production.lot | form | Inherits stock.view_production_lot_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
No new fields.
Public methods (2)-
change_price(self, cr, uid, ids, context=None)Changes the Standard Price of Product. And creates an account move accordingly. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param ids: List of IDs selected @param context: A standard dictionary @return: -
default_get(self, cr, uid, fields, context=None)To get default values for the object. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary which of fields with values.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
do_partial(self, cr, uid, ids, partial_datas, context=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (3)-
compute_price(self, cr, uid, partial_datas, move, context=None) -
do_partial(self, cr, uid, ids, partial_datas, context=None) -
write_lot(self, cr, uid, move, partial_datas, context=None)
No new fields.
Public methods (2)-
do_change_standard_price(self, cr, uid, ids, datas, context=None)Changes the Standard Price of Lot and creates an account move accordingly. @param datas : dict. contain default datas like new_price, stock_output_account, stock_input_account, stock_journal @param context: A standard dictionary -
price_get(self, cr, uid, ids, context=None)
Loading…
Loading…
Loading…