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

Module: Sales - Project

Entity: product.template

Compute Method: _compute_service_policy

View 17.0 View 18.0
Inputs Method Outputs
  • invoice_policy
  • service_type
  • service_policy
  • type
for product in self:
            product.service_policy = self._get_general_to_service(product.invoice_policy, product.service_type)
            if not product.service_policy and product.type == 'service':
                product.service_policy = 'ordered_prepaid'
  • service_policy

Back to entity