c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27093
[Bug 800721] [NEW] sale_margin error, cannot add products to sales order
Public bug reported:
Hi
Lately I wanted to give every client its own price list
My company has Currency RON (romanian lei)
Some of the clients have currency EUR
So I have a pricelist - sale pricelist - in eur, with setting Public
price of the product
Create a new sales order, added first product, after that saved the sale
order.
I assigned the price list newly created this to a the client in the
sales order client and go to add new product.
Now, no matter what pricelist I select, the error is this:
Environment Information :
System : Linux-2.6.38-020638rc6-generic-i686-with-LinuxMint-10-julia
OS Name : posix
Distributor ID: LinuxMint
Description: Linux Mint 10 Julia
Release: 10
Codename: julia
Operating System Release : 2.6.38-020638rc6-generic
Operating System Version : #201102220910 SMP Tue Feb 22 10:23:10 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : ro_RO.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/lib/openerp-server-6.0.1/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/lib/openerp-server-6.0.1/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/openerp-server-6.0.1/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/openerp-server-6.0.1/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/openerp-server-6.0.1/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/openerp-server-6.0.1/addons/sale_margin/sale_margin.py", line 33, in product_id_change
to_cur = self.pool.get('res.partner').browse(cr, uid, partner_id).property_product_pricelist.currency_id.id
AttributeError: 'NoneType' object has no attribute 'id'
Thanks
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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/800721
Title:
sale_margin error, cannot add products to sales order
Status in OpenERP Modules (addons):
New
Bug description:
Hi
Lately I wanted to give every client its own price list
My company has Currency RON (romanian lei)
Some of the clients have currency EUR
So I have a pricelist - sale pricelist - in eur, with setting Public
price of the product
Create a new sales order, added first product, after that saved the
sale order.
I assigned the price list newly created this to a the client in the
sales order client and go to add new product.
Now, no matter what pricelist I select, the error is this:
Environment Information :
System : Linux-2.6.38-020638rc6-generic-i686-with-LinuxMint-10-julia
OS Name : posix
Distributor ID: LinuxMint
Description: Linux Mint 10 Julia
Release: 10
Codename: julia
Operating System Release : 2.6.38-020638rc6-generic
Operating System Version : #201102220910 SMP Tue Feb 22 10:23:10 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : ro_RO.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/lib/openerp-server-6.0.1/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/lib/openerp-server-6.0.1/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/openerp-server-6.0.1/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/openerp-server-6.0.1/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/openerp-server-6.0.1/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/openerp-server-6.0.1/addons/sale_margin/sale_margin.py", line 33, in product_id_change
to_cur = self.pool.get('res.partner').browse(cr, uid, partner_id).property_product_pricelist.currency_id.id
AttributeError: 'NoneType' object has no attribute 'id'
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/800721/+subscriptions
Follow ups
-
[Bug 800721] Re: sale_margin error, cannot add products to sales order
From: qdp (OpenERP), 2011-09-19
-
[Bug 800721] Re: sale_margin error, cannot add products to sales order
From: Fabien (Open ERP), 2011-09-17
-
[Bug 800721] Re: sale_margin error, cannot add products to sales order
From: Mustufa Rangwala (Open ERP), 2011-07-01
-
[Bug 800721] Re: sale_margin error, cannot add products to sales order
From: Meera Trambadia (OpenERP), 2011-07-01
-
[Bug 800721] Re: sale_margin error, cannot add products to sales order
From: Launchpad Bug Tracker, 2011-07-01
-
[Bug 800721] Re: sale_margin error, cannot add products to sales order
From: Meera Trambadia (OpenERP), 2011-06-28
-
[Bug 800721] Re: sale_margin error, cannot add products to sales order
From: Amit Parik (OpenERP), 2011-06-23
-
[Bug 800721] Re: sale_margin error, cannot add products to sales order
From: Amit Parik (OpenERP), 2011-06-23
-
[Bug 800721] [NEW] sale_margin error, cannot add products to sales order
From: Mihai Boiciuc, 2011-06-22
References