← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 667558] Re: product_visible_discount uses discount in changing UoM in sale order of OpenERP v6.0 rc1

 

** Changed in: openobject-addons
       Status: In Progress => Fix Released

-- 
product_visible_discount uses discount in changing UoM in sale order of OpenERP v6.0 rc1
https://bugs.launchpad.net/bugs/667558
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Fix Released

Bug description:
I have two UoMs which are in the same category. PC (pieces) and CAS (cases) where 1 CAS = 24 PC.
I have a product that has CAS as UoM default and a sale price of 520.
With the product_visible_discount installed, I made a sale order of that product and I changed the UoM from CAS into PC. Instead of the price unit will change to 21.67, it uses discount which become 95.83%. I think this is wrong because discount can only be used for pricelist that has a discount.

Also there is a computational error in total using product_visible_discount. Refer to this scenario:
Product: apple juice
Default UoM: CAS (24 PC)
Sale Price: 520

Making sale order with product_visible_discount:
Product: apple juice
Qty: 10
UoM: PC
Price Unit: 520
Discount: 95.83%
Total: 216.84

while making sale order without product_visible_discount
Product: apple juice
Qty: 10
UoM: PC
Price Unit: 21.67
Discount: 0.0%
Total: 216.70

As we can see, there is a 0.14 discrepancy in sales with product_visible_discount and without it.





References