[FIX] product_visible_discount: use on_change result for product value
authorMartin Trigaux <mat@odoo.com>
Mon, 27 Oct 2014 12:45:53 +0000 (13:45 +0100)
committerMartin Trigaux <mat@odoo.com>
Mon, 27 Oct 2014 12:59:41 +0000 (13:59 +0100)
commitfcc59f12fcf2b5dad846d693fe19bec4f782797c
tree2bdc797c7f973ea633f5fc7144b7c88890bbcb94
parent96bcaadd46e7685de3f5267506f051f47e601624
[FIX] product_visible_discount: use on_change result for product value

At the end of the onchange call product_id_change, the uom may have changed (e.g. if product in different category).
To compute the quantity, we need to use the new uom and not the first one (that may be Unit, default value)
addons/product_visible_discount/product_visible_discount.py