Products/Purchase Orders: MOQ and pricing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Vinay Rana (OpenERP) |
Bug Description
V5.0.6-stable
If you've defined a minimum quantity for a product, the price does not appear when adding a purchase order line, but stays at 0.0
To reproduce:
OpenERP V5.0.6
New database with profile manufacturing
Create product "Test" and partner "Supplier"
On Prices & Suppliers tab, set for product Test:
Cost price: 0.44
Add a supplier line with partner: "supplier", minimal quantity: 25 and add a pricelist there with 2 key/values: 25,0.37 and 50,0.30
Set Default Purchase Pricelist Version to be based on "Partner Section of the product form"
Now,
Create a purchase order with partner: Supplier and add a line where you enter product: Test
Result: the quantity is automatically set to 25, which is correct, but unit price stays at 0.0, which is incorrect
If you keep the form open and raise the quantity to 26, the unit price changes to 0.37, which is correct
If you keep the form open and raise the quantity to 60, the unit price changes to 0.30, which is correct
If you keep the form open and reset the quantity to 25, the unit price changes to 0.37, which is correct
If you keep the form open and reset the quantity to 24, the quantity resets to 25 which is correct, but the price is automatically set to 0, which is incorrect.
Related branches
Changed in openobject-addons: | |
status: | New → Confirmed |
Changed in openobject-addons: | |
assignee: | nobody → vra (openerp) (vra-openerp) |
status: | Confirmed → In Progress |
See also related bug https:/ /bugs.launchpad .net/openobject -addons/ +bug/423124
There is more wrong with taking the correct price from the Prices & Suppliers tab in Products.