← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 626784] Re: [5.0][purchase_discount] price_base required but it hasn't default value

 

Extra-addons modules will not be handled currently, as the focus of development is trunk.
Thanks.

** Changed in: openobject-addons
       Status: New => Won't Fix

** Changed in: openobject-addons
   Importance: Undecided => Wishlist

-- 
[5.0][purchase_discount] price_base required but it hasn't default value
https://bugs.launchpad.net/bugs/626784
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: Won't Fix

Bug description:
Hi,

The price_base new field in this module is required and it hasn't default value, then when a purchase order line is created automatically, for example in minimum stock orderpoint wizard this field makes fail the procurement. I attach a patch that overwrites create method of purchase_order_line, if price_unit is filled and price_base not, it copies the value in price_unit to price_base, because put a default value in this field, isn't valid because then for example i will have to update manually the purchase order line with the real base price, if not, it set in invoices lines 0.0 in the price, if it was the default value. 

Another bug:

I can't create an invoice from picking because if I set 10% of discount in purchase with price_base is 100$, price_unit is 90$, it passes to invoice the discount, it works, but the price_unit in invoice line is 90$ because you don't pass the price_base field without price_unit, then the result in invoice is 81$ because it applies discount again. Then in my patch I extend invoice_line_hook method and I pass price_base instead of price_unit.

I expect that my patch solve it.