View difference between Paste ID: LE0gqkD5 and AF3Ji5E7
SHOW: | | - or go back to the newest paste.
1
from decimal import Decimal
2
3
class PriceList(ModelSQL, ModelView):
4
    _name = 'product.price_list'
5
6-
    def _get_context_price_list_line(self, party, product, unit_price,
6+
    def _get_context_price_list_line(self, party, product, unit_price, quantity, uom):
7-
            , dealer_price, quantity, uom):
7+
8-
        '''
8+
9-
        Get price list context for unit price
9+
10
            context['dealer_price'] = product.dealer_price
11-
        :param party: the BrowseRecord of the party.party
11+
12-
        :param product: the BrowseRecord of the product.product
12+
13-
        :param unit_price: a Decimal for the default unit price in the
13+
14-
            company's currency and default uom of the product
14+
15-
        :param quantity: the quantity of product
15+