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
    • Intelligence artificielle
    • 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
    • Supermarché
    • 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
    • Homme à tout faire
    • 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
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

Zatca Scheduled action Not Working

S'inscrire

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

Cette question a été signalée
odoo15enterpise
1 Répondre
3035 Vues
Avatar
Osama Abulhasan & Co. For Technology Ltd

In ZATCA, we have moved to production, and all the setups are completed, but invoices are not being sent automatically to the ZATCA portal. We have more than 25 shops, and invoices are created every minute but are not being processed to the ZATCA portal. We found a scheduled action named 'EDI: Perform web services operations.' Is this related to ZATCA, or do we need to create an automatic one? Please suggest a solution. We need a quick and urgent reply from your side. Additionally, when I clicked "Run Manually," I encountered an error message.

Error Message 

2024-09-01 10:59:05,615 332460 ERROR odoo.addons.base.models.ir_cron: Call from cron EDI : Perform web services operations for server action #262 failed in Job #12

Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/tools/safe_eval.py", line 386, in safe_eval

return unsafe_eval(c, globals_dict, locals_dict)

File "", line 1, in

File "/home/odoo/src/odoo/addons/account_edi/models/account_edi_document.py", line 267, in _cron_process_documents_web_services

nb_remaining_jobs = edi_documents._process_documents_web_services(job_count=job_count)

File "/home/odoo/src/odoo/addons/account_edi/models/account_edi_document.py", line 254, in _process_documents_web_services

self._process_job(documents, doc_type)

File "/home/odoo/src/odoo/addons/account_edi/models/account_edi_document.py", line 203, in _process_job

edi_result = edi_format._post_invoice_edi(invoices)

File "/home/odoo/src/odoo/addons/l10n_sa_edi/models/account_edi_format.py", line 455, in _post_invoice_edi

return {invoice: self._l10n_sa_post_zatca_edi(invoice)}

File "/home/odoo/src/odoo/addons/l10n_sa_edi/models/account_edi_format.py", line 328, in _l10n_sa_post_zatca_edi

xml_content = invoice._l10n_sa_generate_unsigned_data()

File "/home/odoo/src/odoo/addons/l10n_sa_edi/models/account_move.py", line 151, in _l10n_sa_generate_unsigned_data

invoice_hash_hex = self.env['account.edi.xml.ubl_21.zatca']._l10n_sa_generate_invoice_xml_hash(xml_content).decode()

File "/home/odoo/src/odoo/addons/l10n_sa_edi/models/account_edi_xml_ubl_21_zatca.py", line 77, in _l10n_sa_generate_invoice_xml_hash

xml_sha = self._l10n_sa_generate_invoice_xml_sha(xml_content)

File "/home/odoo/src/odoo/addons/l10n_sa_edi/models/account_edi_xml_ubl_21_zatca.py", line 64, in _l10n_sa_generate_invoice_xml_sha

root = etree.fromstring(xml_content)

File "src/lxml/etree.pyx", line 3235, in lxml.etree.fromstring

File "src/lxml/parser.pxi", line 1875, in lxml.etree._parseMemoryDocument

ValueError: can only parse strings


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_cron.py", line 390, in _callback

self.env['ir.actions.server'].browse(server_action_id).run()

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions.py", line 649, in run

res = runner(run_self, eval_context=eval_context)

File "/home/odoo/src/odoo/odoo/addons/base/models/ir_actions.py", line 518, in _run_action_code_multi

safe_eval(self.code.strip(), eval_context, mode="exec", nocopy=True) # nocopy allows to return 'action'

File "/home/odoo/src/odoo/odoo/tools/safe_eval.py", line 402, in safe_eval

raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))

ValueError: : "can only parse strings" while evaluating

'model._cron_process_documents_web_services(job_count=20)'

0
Avatar
Ignorer
Avatar
Yahoo Baba Innovations Pvt.Ltd
Meilleure réponse

- Look for any functions in _cron_process_documents_web_services that involve parsing or converting data, such as int(), float(), str(), datetime.strptime(), etc. Verify that these functions are receiving the correct type of input.

thanks

0
Avatar
Ignorer
Osama Abulhasan & Co. For Technology Ltd
Auteur

We are using the odoo sh server, how can I resolve this error because error shows in the odoo default addons

Yahoo Baba Innovations Pvt.Ltd

If there's anything I can assist you with, please let me know and I'd be happy to help!

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é
Problem loading active promotion programs in POS odoo 15 enterprise
odoo15enterpise
Avatar
0
sept. 24
2777
[15.0] point of sale refund of discounted product does not consider the discount
odoo15enterpise
Avatar
0
mai 24
1798
Reward line per product POS
odoo15enterpise
Avatar
0
mai 24
2261
Apply highest discount
odoo15enterpise
Avatar
0
mai 24
2322
Odoo database isn't pinging Résolu
Cybrosys odoo15enterpise
Avatar
Avatar
1
févr. 26
4122
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 Svenska ภาษาไทย 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