Each time the quantity of a product is changed, the price must be updated according to the pricelist of the user. When the price given by the pricelist is less then the unit price of the product, the reduction of the price must be displayed. A not stored computed field is added in model "sale.order.line" to compute the discounted price because when the module product_visible_discount is installed the price unit of a SO line is the full price of the product and the discount related to the pricelist is written in percent in the field discount(function "product_id_change" in addons/product_visible_discount/product_visible_discount.py). opw:660178master
parent
7c0e734785
commit
a617fd29ae
Loading…
Reference in new issue