Stock Secondary Unit

stock_secondary_unit
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_secondary_unit
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYstock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, rjaraspearhead
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_secondary_unit
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product xpath Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template xpath Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template xpath 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 xpath Inherits stock.view_picking_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.tree stock.move.line field Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line field Inherits stock.view_stock_move_line_operation_tree
view_stock_move_operations stock.move.operations.form.inherit stock.move xpath Inherits stock.view_stock_move_operations
view_template_property_form Product template Secondary Unit product.template xpath Inherits stock.view_template_property_form
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.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_secondary_unit
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYstock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSDaniel Reis, Weblate, OCA-git-bot, oca-ci, David Alonso // Solvos, Rocío Vega, Edilio Escalona Almira
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_secondary_unit
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product xpath Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template xpath Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template xpath 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 stock_report_delivery_aggregated_move_lines 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 xpath Inherits stock.view_picking_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.tree stock.move.line field Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line field Inherits stock.view_stock_move_line_operation_tree
view_stock_move_operations stock.move.operations.form.inherit stock.move xpath Inherits stock.view_stock_move_operations
view_template_property_form Product template Secondary Unit product.template xpath Inherits stock.view_template_property_form
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.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_secondary_unit
VERSION
VERSION 1.1.2
CATEGORY
CATEGORYstock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSsergio-teruel, Weblate, OCA-git-bot, oca-ci, pilarvargas-tecnativa, Celina Devigili, lk-eska
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:44
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_secondary_unit
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
product_form_view_procurement_button product.product xpath Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product xpath Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template xpath Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template xpath Inherits product.product_template_tree_view
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
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 xpath Inherits stock.view_picking_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.tree stock.move.line field Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line field Inherits stock.view_stock_move_line_operation_tree
view_template_property_form Product template Secondary Unit product.template xpath Inherits stock.view_template_property_form
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)
  • qty_done Float
    compute='_compute_qty_done' 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.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_secondary_unit
VERSION
VERSION 2.3.3
CATEGORY
CATEGORYstock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSCarlos Dauden, sergio-teruel, Weblate, OCA-git-bot, oca-ci, pilarvargas-tecnativa, CarlosRoca13, josep-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:33
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_secondary_unit
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
product_form_view_procurement_button product.product xpath Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product xpath Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template xpath Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template xpath Inherits product.product_template_tree_view
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
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 xpath Inherits stock.view_picking_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.tree stock.move.line field Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line field Inherits stock.view_stock_move_line_operation_tree
view_template_property_form Product template Secondary Unit product.template xpath Inherits stock.view_template_property_form
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 readonly=False store=True
Public methods (1)
  • onchange_product_uom_for_secondary(self)
    @api.onchange('product_uom')

New fields (1)
  • qty_done Float
    compute='_compute_qty_done' readonly=False store=True
Public methods (1)
  • create(self, vals)
    @api.model

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.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_secondary_unit
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYstock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, Jesús Alan Ramos Rodríguez, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_secondary_unit
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (10)
XML IDNameModelTypeStatus
product_form_view_procurement_button product.product xpath Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product xpath Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template xpath Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template xpath Inherits product.product_template_tree_view
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
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 xpath Inherits stock.view_picking_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.tree stock.move.line field Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line field Inherits stock.view_stock_move_line_operation_tree
view_template_property_form Product template Secondary Unit product.template xpath Inherits stock.view_template_property_form
Models touched (5)

New fields (1)
  • stock_secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' related='product_tmpl_id.stock_secondary_uom_id' 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' 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 readonly=False store=True
Public methods (1)
  • onchange_product_uom_for_secondary(self)
    @api.onchange('product_uom')

New fields (1)
  • qty_done Float
    compute='_compute_qty_done' readonly=False store=True
Public methods (1)
  • create(self, vals)
    @api.model

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.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_secondary_unit
VERSION
VERSION 2.1.1
CATEGORY
CATEGORYstock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA Transbot, sergio-teruel, Víctor Martínez, oca-travis, OCA-git-bot, ps-tubtim
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:12
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_secondary_unit
odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (9)
XML IDNameModelTypeStatus
product_form_view_procurement_button product.product xpath Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product xpath Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template xpath Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template xpath Inherits product.product_template_tree_view
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
view_picking_form Stock Picking Secondary Unit stock.picking xpath Inherits stock.view_picking_form
view_stock_move_line_detailed_operation_tree stock.move.line.operations.tree stock.move.line field Inherits stock.view_stock_move_line_detailed_operation_tree
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line field Inherits stock.view_stock_move_line_operation_tree
view_template_property_form Product template Secondary Unit product.template xpath Inherits stock.view_template_property_form
Models touched (5)

New fields (1)
  • stock_secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' related='product_tmpl_id.stock_secondary_uom_id' 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' copy=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 readonly=False store=True
Public methods (1)
  • onchange_product_uom_for_secondary(self)
    @api.onchange('product_uom')

New fields (1)
  • qty_done Float
    compute='_compute_qty_done' readonly=False store=True
Public methods (1)
  • create(self, vals)
    @api.model

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.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_secondary_unit
VERSION
VERSION 1.2.2
CATEGORY
CATEGORYstock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, sergio-teruel, oca-travis, Weblate, OCA-git-bot, Kitti U, Enrique, Giovanni
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_secondary_unit
odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
product_form_view_procurement_button product.product xpath Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product xpath Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template xpath Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template xpath Inherits product.product_template_tree_view
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
view_picking_form Stock Picking Secondary Unit stock.picking xpath Inherits stock.view_picking_form
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line field Inherits stock.view_stock_move_line_operation_tree
view_template_property_form Product template Secondary Unit product.template xpath Inherits stock.view_template_property_form
Models touched (6)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • stock_secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' string='Second unit for inventory'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • onchange_product_uom_for_secondary(self)
    @api.onchange('product_uom')
  • onchange_secondary_unit_product_uom_qty(self)
    @api.onchange('product_uom_qty')
  • onchange_secondary_uom(self)
    @api.onchange('secondary_uom_id', 'secondary_uom_qty')

New fields (0)

No new fields.

Public methods (2)
  • create(self, vals)
    @api.model
  • write(self, vals)
    @api.multi

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

No public methods.

New fields (2)
  • secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' string='Second unit'
  • secondary_uom_qty Float
    digits=dp.get_precision('Product Unit of Measure') string='Secondary Qty'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/11.0/stock_secondary_unit
VERSION
VERSION 1.0.4
CATEGORY
CATEGORYstock
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, OCA Transbot, Sergio Teruel, oca-travis, OCA-git-bot, Enrique
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_secondary_unit
odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - barcodes
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
product_form_view_procurement_button product.product xpath Inherits stock.product_form_view_procurement_button
product_product_tree_view product.product xpath Inherits product.product_product_tree_view
product_template_form_view_procurement_button product.template xpath Inherits stock.product_template_form_view_procurement_button
product_template_tree_view product.template xpath Inherits product.product_template_tree_view
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
view_picking_form Stock Picking Secondary Unit stock.picking xpath Inherits stock.view_picking_form
view_stock_move_line_operation_tree Stock Move Secondary Unit stock.move.line field Inherits stock.view_stock_move_line_operation_tree
view_template_property_form Product template Secondary Unit product.template xpath Inherits stock.view_template_property_form
Models touched (6)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • stock_secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' string='Second unit for inventory'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • create(self, vals)
    @api.model

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

No public methods.

New fields (2)
  • secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' string='Second unit'
  • secondary_uom_qty Float
    digits=dp.get_precision('Product Unit of Measure') string='Secondary Qty'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
PULL REQUEST
PULL REQUEST[19.0][MIG] stock_secondary_unit (#2546)