(self, default=None, context=None, **kw)
return {'price': context.Movement_lookupPrice()}
Return a dict object which contains operands used for price
    calculation. The returned items depend on a site configuration,
    because this will invoke a custom script at the end. The only
    assumption is that the dict must contain a key 'price'
    which represents the final result of the price calculation.

    The purpose is to obtain descriptive information to notify the user
    of how a price is calculated in details, in particular, for invoices
    and quotations. So a script which is eventually called should provide
    all values required for generating such reports (e.g. a price,
    a price without a discount, and a discount).
Return a dict object which contains operands used for price
    calculation. The returned items depend on a site configuration,
    because this will invoke a custom script at the end. The only
    assumption is that the dict must contain a key 'price'
    which represents the final result of the price calculation.
Return a dict object which contains operands used for price calculation . The returned items depend on a site configuration because this will invoke a custom script at the end . The only assumption is that the dict must contain a key price which represents the final result of the price calculation .
def getPriceCalculationOperandDict(self, default=None, context=None, **kw):
    """Return a dict object which contains operands used for price
    calculation. The returned items depend on a site configuration,
    because this will invoke a custom script at the end. The only
    assumption is that the dict must contain a key 'price'
    which represents the final result of the price calculation.

    The purpose is to obtain descriptive information to notify the user
    of how a price is calculated in details, in particular, for invoices
    and quotations. So a script which is eventually called should provide
    all values required for generating such reports (e.g. a price,
    a price without a discount, and a discount).
    """
    # First, try a type-based method, and if not present, use
    # the good-old-days way (which only returns a final result).
    if context is None:
      context = self
    method = context._getTypeBasedMethod('getPriceCalculationOperandDict')
    if method is None:
      # Try this, because when the context is an instance of a derived
      # class of Movement, Movement_getPriceCalculationOperandDict is
      # not searched.
      method = getattr(context, 'Movement_getPriceCalculationOperandDict', None)
    if method is not None:
      operand_dict = unrestricted_apply(method, kw=kw)
      if operand_dict is None:
        return default
      assert 'price' in operand_dict
      return operand_dict
    return {'price': context.Movement_lookupPrice()}
def getPriceCalculationOperandDict ( self , default = None , context = None , * * kw ) : # First, try a type-based method, and if not present, use # the good-old-days way (which only returns a final result). if context is None : context = self method = context . _getTypeBasedMethod ( 'getPriceCalculationOperandDict' ) if method is None : # Try this, because when the context is an instance of a derived # class of Movement, Movement_getPriceCalculationOperandDict is # not searched. method = getattr ( context , 'Movement_getPriceCalculationOperandDict' , None ) if method is not None : operand_dict = unrestricted_apply ( method , kw = kw ) if operand_dict is None : return default assert 'price' in operand_dict return operand_dict return { 'price' : context . Movement_lookupPrice ( ) }