Supplier with 2 procelist for 2 categories of products

Bug #1220556 reported by William
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
posys
New
Undecided
Unassigned

Bug Description

I explain the case:

I have a supplier with 2 categories of products, the first category is a "Purchase pricelist" and the other category is other purchase list".

I create products, categories and pricelist for each category. When i create a sale order with 2 lines (one product of each category for the same supplier), I confirm Sale and create 2 purchase order for the same supplier with the pricelist inhertit for supplier... I believe that if create 2 purchase order openerp should detect if the product have a purchase pricelist active for this product or category and apply this price of pricelist and not the purchase pricelist inherit from supplier.

I believe the error is in /openerp/addons/purchase/purchase.py, at line 1135:

            pricelist_id = partner.property_product_pricelist_purchase.id

PD: Sorry for my English :(

William (wsandoya)
description: updated
William (wsandoya)
affects: prestashoperpconnect → posys
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.