openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #22623
[Bug 1048547] Re: [6.1] purchase: changing a product uses wrong supplier info data
The provided patch is not enough to fix the bug.
- if you have a product_product whose id is different from the product_template
- you create a supplier info in the product's supplier tab
- you create a purchase order, select the product
=> the price is not correct.
the additional fix is to replace product_id with tmpl_id in
product/pricelist.py:204
Attached is the full patch
** Patch added: "lp1048547.patch"
https://bugs.launchpad.net/openobject-addons/+bug/1048547/+attachment/3508142/+files/lp1048547.patch
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1048547
Title:
[6.1] purchase: changing a product uses wrong supplier info data
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
Hi,
When entering purchase orders we get osv.except_osv raised because of
some refactoring regression in the onchange_product_id function which
mistakenly searches for the product_id in the table
'product.supplierinfo' which has a link to 'product.template' and NOT
a 'product.product'. (See http://bazaar.launchpad.net/~openerp
/openobject-addons/6.1/view/head:/purchase/purchase.py#L780 )
If you are not using product variants the error will not be easily
spotted.
Note that this bug seemed to have fallen between test scenarios ?
Regression occurred in :
hmo@xxxxxxxxxxx-20120106121612-qc156nkqngl6gmgq
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1048547/+subscriptions
References