parameters: (self)
return_statement: return res
docstring: We want to prevent storable product to be expensed, since it make no sense as when confirm
              expenses, the product is already out of our stock.
docstring_summary: We want to prevent storable product to be expensed, since it make no sense as when confirm
              expenses, the product is already out of our stock.
docstring_tokens: We want to prevent storable product to be expensed since it make no sense as when confirm expenses the product is already out of our stock .
function: def _onchange_type(self):
          """ We want to prevent storable product to be expensed, since it make no sense as when confirm
              expenses, the product is already out of our stock.
          """
          res = super(ProductTemplate, self)._onchange_type()
          if self.type == 'product':
              self.expense_policy = 'no'
              self.service_type = 'manual'
          return res
function_tokens: def _onchange_type ( self ) : res = super ( ProductTemplate , self ) . _onchange_type ( ) if self . type == 'product' : self . expense_policy = 'no' self . service_type = 'manual' return res