odoo/documentation#16211

Created by fw-bot
Merged at 8be458fa02e8aa8310ade36f144b66e412c1dfb7

Statuses:

label
odoo-dev:saas-18.2-17.0-enforce-company-name-length-zatca-viso-495231-fw
head
c1adc8b9f8c86e164357b9cc5d939267e3a2ffe3
merged
11 hours ago by Victorien Sonneville (viso)
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