← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 814124] Re: Cost structure doesn't use the Supplier's "Purchase Pricelist"

 

In "mrp\reports\price.py" we have

price = supplier_info_pool.price_get(cr, uid, seller_id.name.id, prod.id, number*prod_qtty)[seller_id.name.id]
price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, price, to_uom_id=product_uom.id)
                

If I replaces these lines with (from purchase\purchase.py)
pricelist = seller_id.name.property_product_pricelist_purchase
price = pool.get('product.pricelist').price_get(cr,uid,[pricelist.id],
            prod.id, 1.0, seller_id.name.id, {
                'uom': prod.uom_po_id.id,
                'date': time.strftime('%Y-%m-%d'),
                })[pricelist.id]

then values are correct (rules are applied) (note that as it's just a
copy/paste I didn't take into account quantities, dates,etc.). I think
that there is an issue here in price_get/_compute_price.

nb: I think that the Product Cost report should be improved:

- by selecting a date in the wizard (using current active price lists is not always the wanted choice)
- by displaying the main supplier only once (actually if you have 2 suppliers for a product, the main is displayed once, and once again with other suppliers)
- by displaying the total supplier price by main supplier (actually only the cost price is displayed, the total supplier price could be as interesting as the cost price as the cost one is based on "supplier/manufacturer" public price.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/814124

Title:
  Cost structure doesn't use the Supplier's "Purchase Pricelist"

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  I'm using the "Product Cost Structure" to estimate the cost of a
  product.

  The PDF report displays:
  Components - Suppliers - Quantity - Cost Price per Uom - Supplier Price per Uom

  The "Supplier Price per Uom" is given by:
  - The cost price
    or
  - The supplier price for this quantity if filled in the supplier tab of the product form

  If a rule is defined in the "Default Purchase Pricelist Version" then
  this rule is applied and the "Supplier Price per Uom" value is updated
  by this rule.

  But if a rule is defined in another pricelist, it is not applied
  whereas the purchase pricelist is assigned to the supplier.

  As the supplier is displayed in the report and have its own line, why
  not using its assigned price list to display the real supplier price ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/814124/+subscriptions


References