(self, product, quantity, partner, date=False, uom_id=False)
return self._compute_price_rule([(product, quantity, partner)], date=date, uom_id=uom_id)[product.id]
For a given pricelist, return price and rule for a given product
For a given pricelist, return price and rule for a given product
For a given pricelist return price and rule for a given product
def get_product_price_rule(self, product, quantity, partner, date=False, uom_id=False):
        """ For a given pricelist, return price and rule for a given product """
        self.ensure_one()
        return self._compute_price_rule([(product, quantity, partner)], date=date, uom_id=uom_id)[product.id]
def get_product_price_rule ( self , product , quantity , partner , date = False , uom_id = False ) : self . ensure_one ( ) return self . _compute_price_rule ( [ ( product , quantity , partner ) ] , date = date , uom_id = uom_id ) [ product . id ]