Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

ODOO9: Exception: AttValue: " or ' expected, line 45, column 17

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo
8 Replies
11730 Views
Avatar
Rihene

Can anyone help me know this error please:

2015-12-20 14:45:51,704 7676 ERROR ODOO openerp.service.report: Exception: AttValue: " or ' expected, line 45, column 17

Traceback (most recent call last):

File "/opt/odoo/openerp/service/report.py", line 94, in go

result, format = openerp.report.render_report(cr, uid, ids, object, datas, context)

File "/opt/odoo/openerp/report/__init__.py", line 22, in render_report

return registry['ir.actions.report.xml'].render_report(cr, uid, ids, name, data, context)

File "/opt/odoo/openerp/api.py", line 238, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/openerp/addons/base/ir/ir_actions.py", line 197, in render_report

return new_report.create(cr, uid, res_ids, data, context)

File "/opt/odoo/openerp/report/report_sxw.py", line 371, in create

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

File "/opt/odoo/openerp/report/report_sxw.py", line 440, in create_source_pdf

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

File "/opt/odoo/openerp/report/report_sxw.py", line 455, in create_single_pdf

processed_rml = etree.XML(rml)

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

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

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

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

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

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

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

XMLSyntaxError: AttValue: " or ' expected, line 45, column 17

2015-12-20 14:45:51,925 7676 ERROR ODOO openerp.addons.web.controllers.main: An exception occured during an http request

Traceback (most recent call last):

File "/opt/odoo/openerp/addons/web/controllers/main.py", line 72, in wrap

return f(*args, **kwargs)

File "/opt/odoo/openerp/addons/web/controllers/main.py", line 1568, in index

request.session.db, request.session.uid, request.session.password, report_id)

File "/opt/odoo/openerp/http.py", line 969, in proxy_method

result = dispatch_rpc(self.service_name, method, args)

File "/opt/odoo/openerp/http.py", line 114, in dispatch_rpc

result = dispatch(method, params)

File "/opt/odoo/openerp/service/report.py", line 35, in dispatch

res = fn(db, uid, *params)

File "/opt/odoo/openerp/service/report.py", line 142, in exp_report_get

return _check_report(report_id)

File "/opt/odoo/openerp/service/report.py", line 120, in _check_report

raise UserError('%s: %s' % (exc.message, exc.traceback))

UserError: (u'AttValue: " or \' expected, line 45, column 17: (<class \'lxml.etree.XMLSyntaxError\'>, XMLSyntaxError(u\'AttValue: " or \\\' expected, line 45, column 17\',), <traceback object at 0x7fe68cca4ef0>)', None)

Thanks a lot in advance.

Best Regards.

1
Avatar
Discard
Ajay Patel

what you want to do?? and what you change in web?? please give a some line of code.

Rihene
Author

Friend i want to create a report (webkit) on odoo9 :/

Ajay Patel

can you show some line of code of your xml file near (line 45)

Rihene
Author

I will post you my xml but there is no error. The unique error is that webkit report is not working on my odoo9 :/

Rihene
Author

NotImplementedError: Type de rapport inconnu : "webkit" Here is what i got when i print my report

Rihene
Author

Hey friend!!! are u here??

Avatar
Rihene
Author Best Answer

Friend;

Here is my xml:

<?xml version="1.0"?>

<openerp>

<data>

<record id="view_holidays_form_inherit" model="ir.ui.view">

<field name="name">Leave Request.inherit</field>

<field name="model">hr.holidays</field>

<field name="inherit_id" ref="hr_holidays.edit_holiday_new"/>

<field name="arch" type="xml">

<xpath expr="//field[@name='department_id']" position="after">

<field name="resumption_date"/>

</xpath>

</field>

</record>

</data>

</openerp>

And the xml of my report:

<?xml version="1.0"?>

<openerp>

<data>

<report

auto="False"

id="titre_conge_report"

model="hr.holidays"

name="titre_conge"

file="addons/seetek_leave/report/titre_conge.mako"

string="Titre de congés"

usage="default"/>

</data>

</openerp>

1
Avatar
Discard
Avatar
Ajay Patel
Best Answer

Try This may it will help you, in this you have to explicitly define the parser path. See this example, (parser) attribute:

 <report id="report_pack_slip"
        name="pack.slip"
        auto="False"
        model="stock.picking"
        file="mage2odoo_picking_ticket/report/packing.mako"
        string="Packing Slip"
    parser="<module_name>.<folder_name>.<py file>.<parsar class>"
    header="False"
        report_type="webkit"
/>

see this discussion: https://github.com/odoo/odoo/issues/2334 

0
Avatar
Discard
Rihene
Author

i have tried it but nothing have changed. I still get this error :/

Ajay Patel

as per your question error in your xml syntax at line 45

Rihene
Author

I have tried this but it still not working pffff :'(

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Odoo installatie
odoo
Avatar
Avatar
1
Dec 25
199
How Odoo Help Businesses??
odoo
Avatar
0
Dec 25
250
Odoo Studio Many2one field not appearing in automations
odoo
Avatar
Avatar
1
Dec 25
412
SOC 1 Report
odoo
Avatar
Avatar
2
Nov 25
492
邮箱无法正常使用
odoo
Avatar
Avatar
1
Nov 25
2402
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now