c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #19791
Re: [Bug 738146] Re: Problem with the pricelist of type "Partner section of the product form" + problems with price calculation in the sale order form
Hello Amit,
I use the trunk version of openerp:
The first problem:
File
"/home/salvi/Desktop/Execute-Openerp/Openerp-6.0/openerp-server-6.0/6.0/bin/addons/product/pricelist.py",
line 280, in price_get_multi
product_default_uom = product_obj.read(cr, uid, [tmpl_id],
['uom_id'])[0]['uom_id'][0]
IndexError: list index out of range
here we are reading from product.product object passing a "tmpl_id" ( id found
in product_template table), this is not always true
The second problem:
I created a product "prova" with sale price=1, cost price=1 and stock
measure=m.
Creating a purchase order for this product (first screenshot),the unit price is
1 (until here is everything ok).
if you try to change the unit of measure (for example in "km") the unit price
must be 1000 (1*1000) but we have 1000 000 (second screenshot)
The same problem is with the sale order
The problem is connected with the context attribute passed in the price_get
method inside the price_get_multi method inside the pricelist.py class.
Regards
Salvi
________________________________
From: Amit Parik (OpenERP) <amp@xxxxxxxxxxx>
To: s_angjeli@xxxxxxxxx
Sent: Mon, March 21, 2011 10:53:08 AM
Subject: [Bug 738146] Re: Problem with the pricelist of type "Partner section of
the product form" + problems with price calculation in the sale order form
Hello Salvi,
I have checked your issue but I can not get your point exactly where you faced
the problem.
So would you please elaborate with more information or provide the proper steps
to reproduce it.
Thanks.
** Changed in: openobject-addons
Status: New => Incomplete
--
You received this bug notification because you are a direct subscriber
of the bug.
https://bugs.launchpad.net/bugs/738146
Title:
Problem with the pricelist of type "Partner section of the product
form" + problems with price calculation in the sale order form
Status in OpenERP Modules (addons):
Incomplete
Bug description:
First problem:
It use a "product template id" to read from "product_product" table ( this
is Ok when we have one product for a product template but is not Ok in case of
multi products
Second case:
The calculation of the price in the sale order form is incorrect when the
selected unit of measure is different from the stock unit of mesure, the problem
is connect with context attribute passed in the the price_get
(product.product) method inside the the price_get_multi method in the
pricelist.py class
To unsubscribe from this bug, go to:
https://bugs.launchpad.net/openobject-addons/+bug/738146/+subscribe
** Attachment added: "Screenshot_1.png"
https://bugs.launchpad.net/bugs/738146/+attachment/1929453/+files/Screenshot_1.png
** Attachment added: "Screenshot_2.png"
https://bugs.launchpad.net/bugs/738146/+attachment/1929454/+files/Screenshot_2.png
--
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/738146
Title:
Problem with the pricelist of type "Partner section of the product
form" + problems with price calculation in the sale order form
Status in OpenERP Modules (addons):
Incomplete
Bug description:
First problem:
It use a "product template id" to read from "product_product" table ( this is Ok when we have one product for a product template but is not Ok in case of multi products
Second case:
The calculation of the price in the sale order form is incorrect when the selected unit of measure is different from the stock unit of mesure, the problem is connect with context attribute passed in the the price_get (product.product) method inside the the price_get_multi method in the pricelist.py class
References