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

View 17.0 View 18.0
Inputs Method Outputs
  • type
  • is_storable
for template in self:
-             template.show_on_hand_qty_status_button = template.type == 'product'
-             template.show_forecasted_qty_status_button = template.type == 'product'
+             template.show_on_hand_qty_status_button = template.is_storable
+             template.show_forecasted_qty_status_button = template.is_storable
  • show_on_hand_qty_status_button
  • show_forecasted_qty_status_button

Back to entity