average price is not correctly computed when purchase order contains several lines of same product

Bug #1221107 reported by Bertrand Rétif
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Medium
OpenERP Publisher's Warranty Team

Bug Description

Hi,

When you have a product with costing method set at average price. If you create a purchase order with 2 lines for this products.
For instance 10 prodA at 10$ and 1 prodA at 0$ (1 product offer if you buy 10).
When you recevice the product the cost price will be at 0.

Here is a link to a video showing the bug with demo data http://youtu.be/bCG2HgWk_20
Tested a a fresh db with only stock and purchase module installed.

Do not hesitate for further details.

Bertrand

Tags: maintenance
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2) → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Bertrand Rétif (bretif) wrote :

Here is a patch sent by OpenERP support to correct the bug.
I test it and it works for me.

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.