Skip to content
Health
95/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by20/25
    3 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis 0 migration notes 3 models 5 views 0 HTTP endpoints

Description

This module extends the functionality of sale orders to allow sale products in secondary unit of distinct category.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_product_matrix_secondary_unit, sale_stock_secondary_unit, website_sale_secondary_unit

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

XML IDNameModelTypeStatus
product_secondary_unit_view_search product.secondary.unit.view.search product.secondary.unit search New
product_secondary_unit_view_tree product.secondary.unit.sale.view.list product.secondary.unit list New
product_template_form_view Product template Secondary Unit product.template form Inherits product.product_template_form_view
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form Sale Order Secondary Unit sale.order form Inherits sale.view_order_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (1)
  • sale_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)]" help="In order to set a value, please first add at least one record in 'Secondary Unit of Measure'" string='Default secondary unit for sales'
Public methods (0)

No public methods.

New fields (1)
  • sale_secondary_uom_id Many2one → product.secondary.unit
    comodel_name='product.secondary.unit' compute='_compute_sale_secondary_uom_id' domain="[('product_tmpl_id', '=', id), ('product_id', '=', False)]" help="In order to set a value, please first add at least one record in 'Secondary Unit of Measure'" inverse='_inverse_sale_secondary_uom_id' store=True string='Default secondary unit for sales'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • onchange_sale_secondary_uom_id(self)
    @api.onchange('sale_secondary_uom_id')

New fields (2)
  • product_uom_qty Float
    copy=True
  • secondary_uom_unit_price Float
    compute='_compute_secondary_uom_unit_price' digits='Product Price' string='2nd unit price'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…