openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #16146
[Bug 1021436] Re: Crash when creating supplier invoice with product_visible_disccount
** Summary changed:
- Crush when creating supplier invoice with product_visible_disccount
+ Crash when creating supplier invoice with product_visible_disccount
--
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/1021436
Title:
Crash when creating supplier invoice with product_visible_disccount
Status in OpenERP Addons (modules):
Fix Released
Bug description:
I have installed on OpenERP v6.1 (last nightly build: OpenERP Server
6.1-20120702-233311) on Ubuntu 10.04 and PostgreSQL 9.1.4.
1) I create a new instance of OpenERP.
2) Install module product_visible_disccount.
3) Create supplier invoice.
4) Add a line.
5) When I select a product for the line I get the following error:
Client Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1027, in onchange
result = self.call_common(req, model, method, args, context_id=context_id)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 991, in call_common
return self._call_kw(req, model, method, args, {})
File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1005, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
args, kw)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 611, in send
raise fault
Server Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 592, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 586, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/pymodules/python2.7/openerp/addons/product_visible_discount/product_visible_discount.py", line 143, in product_id_change
pricelist =partner_obj.browse(cr, uid, partner_id).property_product_pricelist_purchase.id
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 478, in __getattr__
raise AttributeError(e)
AttributeError: "Field 'property_product_pricelist_purchase' does not exist in object 'browse_record(res.partner, 2)'"
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1021436/+subscriptions
References