Product : wrong variable reference on pricelist.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Ravindra Mekhiya(OpenERP) |
Bug Description
Using Trunk Rev No. 4152
When using Pricelists based on other pricelists, I always get prices returned as a zero figure, instead of a figure based on the other pricelist.
To recreate:-
1. Create new pricelist, with different currency. say, EUR
2. Create a New Pricelist Version eg EUR marking it active
3. Create new 'Products, Listprice' items without any rules, etc
4. In the above, select in 'Based on' as 'Other Pricelist', other Pricelist is set to 'Public Pricelist (GBP)'
5. Do not change any other areas.
6. In Partner, select EUR in the Pricelist, and create a Sale Order, from an opportunity with that Partner
7. Create a new sale order line, do Product search, you can see that List price and Cost price are ok, but Pricelist is always 0.00
In gtk client i get an error like this :-
Environment Information :
System : Linux-2.
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu maverick (development branch)
Release: 10.10
Codename: maverick
Operating System Release : 2.6.35-22-generic
Operating System Version : #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_GB.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0dev
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
'date': date_order,
File "/home/
res_multi = self.price_
File "/home/
[res[
NameError: global name 'prod_id' is not defined
Related branches
Changed in openobject-addons: | |
assignee: | nobody → RME(OpenERP) (rme-openerp) |
Changed in openobject-addons: | |
status: | New → Confirmed |
Changed in openobject-addons: | |
milestone: | none → 6.0 |
Fixed by revision 4182 <email address hidden>.
Thanks.