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

Zatca Scheduled action Not Working

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo15enterpise
1 Reply
2214 Views
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
Discard
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
Discard
Osama Abulhasan & Co. For Technology Ltd
Author

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!

Sign up
Related Posts Replies Views Activity
Problem loading active promotion programs in POS odoo 15 enterprise
odoo15enterpise
Avatar
0
Sep 24
2016
[15.0] point of sale refund of discounted product does not consider the discount
odoo15enterpise
Avatar
0
May 24
1252
Reward line per product POS
odoo15enterpise
Avatar
0
May 24
1599
Apply highest discount
odoo15enterpise
Avatar
0
May 24
1748
Odoo database isn't pinging Solved
Cybrosys odoo15enterpise
Avatar
Avatar
1
Mar 25
2610
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