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 openerp openerp.netsvc: AttValue: " or ' expected, line 44, column 11

By
Drees Far
on 8/11/15, 11:48 AM 758 views

Hello friends!!

Please, i am crating a report but i have got this error.

I didnt know from where its is coming so please i need your help please.

Here is what i have got as a trace:


2015-08-11 15:44:17,948 4219 ERROR openerp openerp.service.web_services: Exception: AttValue: " or ' expected, line 44, column 11

Traceback (most recent call last):

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 712, in go

(result, format) = obj.create(cr, uid, ids, datas, context)

File "/opt/openerp/v7/addons/report_webkit/webkit_report.py", line 330, in create

return super(WebKitParser, self).create(cursor, uid, ids, data, context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 442, in create

fnct_ret = fnct(cr, uid, ids, data, report_xml, context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 511, in create_source_pdf

return self.create_single_pdf(cr, uid, ids, data, report_xml, context)

File "/opt/openerp/v7/addons/report_webkit/webkit_report.py", line 204, in create_single_pdf

return super(WebKitParser,self).create_single_pdf(cursor, uid, ids, data, report_xml, context=context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 526, in create_single_pdf

processed_rml = etree.XML(rml)

File "lxml.etree.pyx", line 3012, in lxml.etree.XML (src/lxml/lxml.etree.c:68047)

File "parser.pxi", line 1786, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102641)

File "parser.pxi", line 1674, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:101470)

File "parser.pxi", line 1074, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:96652)

File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91461)

File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92647)

File "parser.pxi", line 622, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91943)

XMLSyntaxError: AttValue: " or ' expected, line 44, column 11

2015-08-11 15:44:18,188 4219 ERROR openerp openerp.netsvc: AttValue: " or ' expected, line 44, column 11

(<class 'lxml.etree.XMLSyntaxError'>, XMLSyntaxError(u'AttValue: " or \' expected, line 44, column 11',), <traceback object at 0x7fef09607290>)

Traceback (most recent call last):

File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc

result = ExportService.getService(service_name).dispatch(method, params)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 654, in dispatch

res = fn(db, uid, *params)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 760, in exp_report_get

return self._check_report(report_id)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 738, in _check_report

netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)

File "/opt/openerp/v7/server/openerp/netsvc.py", line 71, in abort_response

raise openerp.osv.osv.except_osv(description, details)

except_osv: (u'AttValue: " or \' expected, line 44, column 11', (<class 'lxml.etree.XMLSyntaxError'>, XMLSyntaxError(u'AttValue: " or \' expected, line 44, column 11',), <traceback object at 0x7fef09607290>))

2015-08-11 15:44:18,191 4219 INFO openerp werkzeug: 127.0.0.1 - - [11/Aug/2015 15:44:18] "POST /web/report HTTP/1.1" 500 -

Regards.

0

Drees Far

--Drees Far--
1130
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
On 8/11/15, 12:39 PM

I have found the solution:

It was because of the OpenERP while installing modules, table res_company is missing some attributes : name, city, zip, country_id...

When i have eliminated them the report works correctly.

So now, i have to reinstall an other database and be carefull in completing attributes of tables :)

Regards.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 8/11/15, 11:48 AM
Seen: 758 times
Last updated: 8/11/15, 12:39 PM