Products/Purchase Orders: MOQ and pricing

Bug #487641 reported by jan@synkronized.be
18
This bug affects 3 people
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.

Tags: 423124 bug

Related branches

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

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.

tags: added: 423124 bug
Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
assignee: nobody → vra (openerp) (vra-openerp)
status: Confirmed → In Progress
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

Hello,

Please apply the attached patch and notify me.

Thanks.

Revision history for this message
jan@synkronized.be (jan-synkronized.be) wrote :

Hello,
Thanks for the patch - tested and it fixes our problem.
Cheers!

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Jan,

More accurate patch is attached herewith.

Fixed by revision 2475 <email address hidden>.

Thank you.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :
Changed in openobject-addons:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.