Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Error on sending to server : sales quotation report after modification [Closed]

By
nishad
on 6/26/13, 4:02 AM 1,806 views

The Question has been closed

by
Keyur
on 11/28/2013 02:41:28

Am trying to modify existing quotation report via openoffice , it works well for quite few modifications. But now it shows an error as follows. So i couldn't modify my report any more. Anyone have an idea about what might be the issue with it.

2013-06-26 05:41:59,874 4673 ERROR db1 openerp.osv.osv: Uncaught exception

Traceback (most recent call last): File "/opt/openerp/v7/server/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, args, *kwargs) File "/opt/openerp/v7/server/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/opt/openerp/v7/server/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/opt/openerp/v7/server/openerp/addons/base_report_designer/base_report_designer.py", line 57, in upload_report 'report_rml_content': str(sxw2rml(sxwval, xsl=fp.read())), File "/opt/openerp/v7/server/openerp/addons/base_report_designer/openerp_sxw2rml/openerp_sxw2rml.py", line 320, in sxw2rml root = etree.XPathEvaluator(result)("/document/stylesheet") File "xpath.pxi", line 403, in lxml.etree.XPathEvaluator (src/lxml/lxml.etree.c:118711) File "xpath.pxi", line 342, in lxml.etree.XPathDocumentEvaluator.__init__ (src/lxml/lxml.etree.c:118168) File "xpath.pxi", line 264, in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:117299)

TypeError: Argument 'element' has incorrect type (expected lxml.etree._Element, got NoneType)

2013-06-26 05:41:59,875 4673 ERROR db1 openerp.netsvc: Argument 'element' has incorrect type (expected lxml.etree._Element, got NoneType)

Traceback (most recent call last): File "/opt/openerp/v7/server/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp/v7/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/opt/openerp/v7/server/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, *kwargs) File "/opt/openerp/v7/server/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/opt/openerp/v7/server/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/opt/openerp/v7/server/openerp/addons/base_report_designer/base_report_designer.py", line 57, in upload_report 'report_rml_content': str(sxw2rml(sxwval, xsl=fp.read())), File "/opt/openerp/v7/server/openerp/addons/base_report_designer/openerp_sxw2rml/openerp_sxw2rml.py", line 320, in sxw2rml root = etree.XPathEvaluator(result)("/document/stylesheet"), File "xpath.pxi", line 403, in lxml.etree.XPathEvaluator (src/lxml/lxml.etree.c:118711) File "xpath.pxi", line 342, in lxml.etree.XPathDocumentEvaluator.__init__ (src/lxml/lxml.etree.c:118168) File "xpath.pxi", line 264, in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:117299)

TypeError: Argument 'element' has incorrect type (expected lxml.etree._Element, got NoneType)

1

Keyur

--Keyur--
1165
| 4 4 8
Ahmedabad, India
--Keyur--

Odoo Expert

Keyur
On 6/26/13, 4:27 AM

Hi Nishad,

TypeError: Argument 'element' has incorrect type (expected lxml.etree._Element, got NoneType)

This error say that you are trying to access Null value in your sxw file.

For example,

order.project_id.parent_id.name

So maybe there is not any project_id in sale order or any parent_id in project_id. That's why you got error.

Hope this tip is useful.

Thanks.

Thanks Keyur , i have re-designed my report by cross checking all the fields. It works..

nishad
on 6/27/13, 4:28 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 6/26/13, 4:02 AM
Seen: 1806 times
Last updated: 3/16/15, 8:10 AM