Wrong Moving Average Price with Purchase_landed_costs

Bug #1187380 reported by Marie-Noelle Iltis
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Camptocamp R&D Addons
New
Undecided
Unassigned
6.1
New
Undecided
Unassigned

Bug Description

Hello,

I noticed wrong Moving Average Price results due to the Purchase Landed Costs module when the purchase order has more than 1 line.

I added a document with a test purchase that has NO additionnal costs in it and that generates wrong moving average prices because product in line 2 summarise value from line 1.
Also the total cost of the purchase order keeps summarise.
I have not yet checked with additionnal cost but will do when this bug is fixed.

PS. Openerp version is 6.1

Thanks for your support

Marie

Revision history for this message
Marie-Noelle Iltis (mniltis) wrote :
  • Test result Edit (196.0 KiB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
Revision history for this message
Marie-Noelle Iltis (mniltis) wrote :

Some additional notes.

When you create purchases quotation orders and add line landed costs and that you then merge them, landed costs are not taken over to the new document. Therefore they are not taken in account in the Moving Average Price calculation.

Thought I should let you know.

Best
Marie-Noelle

Revision history for this message
Ferdinand (office-chricar) wrote :

this module never went into production yet
we can do some paid development if you need it

Revision history for this message
mzunino (emezeta) wrote :

Hello,

I'm debugging similar behavior in this module also.

Here is the issue.
If the purchase order contains more than one line, each with its own landing costs, then at one of them the landing cost will be duplicated. You can check this at last page PO main view.

Regards,
Marcelo.

Revision history for this message
mzunino (emezeta) wrote :

Hello,

I just upload https://code.launchpad.net/~emezeta/c2c-rd-addons/6.1 It include two minor fixes.

At inherited class "purchase_order", the method function "_landed_cost_base_quantity" calculates the costs by quantity associated to the actual purchase order at base order level. This def doesn't calculates the line cost for qty costs cases.

At inherited class "purchase_order_line" the method function "_landing_cost" calculates the line landing costs. This def fails when the line_order got more than one costs line attached.

I'd like to propose to be merged to the main branch.

Regards,
Marcelo.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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