Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Bricoleur
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

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

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
odoo
8 Réponses
11749 Vues
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
Ignorer
Ajay Patel

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

Rihene
Auteur

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
Auteur

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
Auteur

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

Rihene
Auteur

Hey friend!!! are u here??

Avatar
Rihene
Auteur Meilleure réponse

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
Ignorer
Avatar
Ajay Patel
Meilleure réponse

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
Ignorer
Rihene
Auteur

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
Auteur

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

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
error while rendering the template website_sale.product_title after upgrading to Odoo 19
odoo
Avatar
0
déc. 25
8
We are using Odoo POS (v19) for a wholesale / cash & carry business.
odoo
Avatar
0
déc. 25
118
Odoo installatie
odoo
Avatar
Avatar
1
déc. 25
235
How Odoo Help Businesses??
odoo
Avatar
0
déc. 25
253
Odoo Studio Many2one field not appearing in automations
odoo
Avatar
Avatar
1
déc. 25
424
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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