Repository
OCA/stock-logistics-warehouse · module folder · Try on Runboat
Module version
1.0.0
Category
stock
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-warehouse
Last tracking update
2026-08-07 08:42:50
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Weblate, OCA-git-bot, oca-ci, rjaraspearhead
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
purchase_stock_secondary_unit, sale_stock_secondary_unit
Description
This module extends the functionality of stock module to allow define
other units with their conversion factor.

Code Analysis

Views touched (12)
XML IDNameModelTypeStatus
product_form_view_procurement_button product.product form Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product tree Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template form Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template tree Inherits product.product_template_tree_view
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
stock_report_delivery_aggregated_move_lines_inherit_delivery stock_report_delivery_aggregated_move_lines_inherit_delivery ir.ui.view qweb Inherits stock.stock_report_delivery_aggregated_move_lines
stock_report_delivery_has_serial_move_line stock_report_delivery_has_serial_move_line ir.ui.view qweb Inherits stock.stock_report_delivery_has_serial_move_line
view_picking_form Stock Picking Secondary Unit stock.picking form Inherits stock.view_picking_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.tree stock.move.line tree Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line tree Inherits stock.view_stock_move_line_operation_tree
view_stock_move_operations stock.move.operations.form.inherit stock.move form Inherits stock.view_stock_move_operations
view_template_property_form Product template Secondary Unit product.template form Inherits stock.view_template_property_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (1)
  • stock_secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' domain="['|', ('product_id', '=', id),'&', ('product_tmpl_id', '=', product_tmpl_id), ('product_id', '=', False)]" readonly=False string='Second unit for inventory'
Public methods (0)

No public methods.

New fields (1)
  • stock_secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' domain="[('product_tmpl_id', '=', id), ('product_id', '=', False)]" string='Second unit for inventory'
Public methods (0)

No public methods.

New fields (1)
  • product_uom_qty Float
    compute='_compute_product_uom_qty' copy=True precompute=True readonly=False store=True
Public methods (1)
  • onchange_product_uom_for_secondary(self)
    @api.onchange('product_uom')

New fields (1)
  • quantity Float
    compute='_compute_quantity' precompute=True readonly=False store=True
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi

New fields (1)
  • secondary_unit_qty_available Float
    compute='_compute_secondary_unit_qty_available' digits='Product Unit of Measure' string='Quantity On Hand (2Unit)'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
147 days ago
Last activity
44 days ago
Repository
OCA/stock-logistics-warehouse
Pull request
[19.0][MIG] stock_secondary_unit (#2546)
Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
3 days ago
Last activity
1 day ago
Repository
OCA/stock-logistics-warehouse
Pull request
[19.0][MIG] stock_secondary_unit: Migration to version 19.0 (#2622)