Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Inventory

Entity: product.template

Compute Method: _compute_show_qty_status_button

Inputs Method Outputs
  • is_storable
  • product_variant_id
for template in self:
            template.show_on_hand_qty_status_button = template.is_storable
            template.show_forecasted_qty_status_button = template.is_storable and template.product_variant_id

Back to entity