odoo/documentation#16218

Created by fw-bot

Blocked

label
odoo-dev:19.0-17.0-enforce-company-name-length-zatca-viso-495257-fw
head
467e1f9eb92338fbf7cd1b10857f6c5aad5acf9a
odoo/documentation
17.0 #16196
18.0 #16209
saas-18.2 #16211
saas-18.3 #16213
saas-18.4 #16215
19.0 #16218 missing r+
saas-19.1
master

[FIX] saudi_arabia: add warning about company name length

We have had lots of tickets recently about failed ZATCA onboarding. One of the most common reasons is that the company or branch name is too long compared to the strict limits imposed by zatca.

As for the limits, they are technical, imposed by the QR code generated for every invoice.

The limit itself is 127 bytes, which depending on the exact arabic characters used can range from 42 to 63 arabic characters. 63 is in the best-case scenario where we can encode all characters on 2 bytes.
42 characters is the worst-case scenario where special characters requiring 3 bytes are used.

In an effort to keep our documentation concise and clear, we chose to stick to the best-case scenario of 63 characters, assuming that would be the most common scenario.
Pull requests have been made in the main codebase to make the error messages clearer upon failed onboarding, which should cover the "42 characters edge cases".

Forward-Port-Of: #16196