Repository
OCA/stock-logistics-warehouse · module folder · Try on Runboat
Module version
0.1
Category
Warehouse Management
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-warehouse
Last tracking update
2026-08-07 07:17:44
Authors
Odoo Community Association (OCA), Agile Business Group
Maintainers
Odoo Community Association (OCA), Agile Business Group
Committers
Pedro M. Baeza, Denis Roussel, Stéphane Bidoul (ACSONE)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
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)

New fields (0)

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.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • do_partial(self, cr, uid, ids, partial_datas, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

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)

New fields (0)

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…