Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Zatca Scheduled action Not Working

Subscriure's

Get notified when there's activity on this post

This question has been flagged
odoo15enterpise
1 Respondre
2140 Vistes
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
Descartar
Avatar
Yahoo Baba Innovations Pvt.Ltd
Best Answer

- 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
Descartar
Osama Abulhasan & Co. For Technology Ltd
Autor

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!

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
Problem loading active promotion programs in POS odoo 15 enterprise
odoo15enterpise
Avatar
0
de set. 24
1952
[15.0] point of sale refund of discounted product does not consider the discount
odoo15enterpise
Avatar
0
de maig 24
1235
Reward line per product POS
odoo15enterpise
Avatar
0
de maig 24
1580
Apply highest discount
odoo15enterpise
Avatar
0
de maig 24
1704
Odoo database isn't pinging Solved
Cybrosys odoo15enterpise
Avatar
Avatar
1
de març 25
2489
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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