Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PriceList(ModelSQL, ModelView):
- _name = 'product.price_list'
- def _get_context_price_list_line(self, party, product, unit_price,
- , dealer_price, quantity, uom):
- '''
- Get price list context for unit price
- :param party: the BrowseRecord of the party.party
- :param product: the BrowseRecord of the product.product
- :param unit_price: a Decimal for the default unit price in the
- company's currency and default uom of the product
- :param quantity: the quantity of product
- :param uom: the BrowseRecord of the product.uom
- :return: a dictionary
- '''
- return {
- 'unit_price': unit_price,
- 'dealer_price': dealer_price,
- }
- Pricelist()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement