-
- Downloads
[ADD] l10n_sa_edi: Implement Saudi ZATCA invoicing standards
The ZATCA edi has an onboarding process which happens per journal. A private key is generated for the company and with the data from the company and journal a CSR is made to get a certificate to sign the invoices. In that process that contains multiple steps (see account_journal.py), we also have to send the compliance files which are some example (simplified or not) invoices/debit and credit notes. We have a separate folder with those files and also use them in the tests. For the onboarding, they still need to be signed however. For the sending of the customer invoices themselves, UBL 2.1 is used, but with ZATCA style adaptations. That is why we inherit from that class to be able to add those specific adaptations. This UBL needs to be signed XadeS and in this case we need to do the hash with the sign information present but with empty tags. For ZATCA invoices, as is the case with Ticketbai, the previous hash is needed for the next invoice and is stored per journal. (so we have a chain of hashes) Tests written by Simon (smdc) Part-of: odoo/odoo#124901
Showing
- addons/l10n_sa_edi/__init__.py 2 additions, 0 deletionsaddons/l10n_sa_edi/__init__.py
- addons/l10n_sa_edi/__manifest__.py 44 additions, 0 deletionsaddons/l10n_sa_edi/__manifest__.py
- addons/l10n_sa_edi/data/account_edi_format.xml 11 additions, 0 deletionsaddons/l10n_sa_edi/data/account_edi_format.xml
- addons/l10n_sa_edi/data/pre-hash_invoice.xsl 19 additions, 0 deletionsaddons/l10n_sa_edi/data/pre-hash_invoice.xsl
- addons/l10n_sa_edi/data/res_country_data.xml 38 additions, 0 deletionsaddons/l10n_sa_edi/data/res_country_data.xml
- addons/l10n_sa_edi/data/ubl_21_zatca.xml 285 additions, 0 deletionsaddons/l10n_sa_edi/data/ubl_21_zatca.xml
- addons/l10n_sa_edi/demo/demo_company.xml 52 additions, 0 deletionsaddons/l10n_sa_edi/demo/demo_company.xml
- addons/l10n_sa_edi/models/__init__.py 9 additions, 0 deletionsaddons/l10n_sa_edi/models/__init__.py
- addons/l10n_sa_edi/models/account_edi_document.py 28 additions, 0 deletionsaddons/l10n_sa_edi/models/account_edi_document.py
- addons/l10n_sa_edi/models/account_edi_format.py 471 additions, 0 deletionsaddons/l10n_sa_edi/models/account_edi_format.py
- addons/l10n_sa_edi/models/account_edi_xml_ubl_21_zatca.py 410 additions, 0 deletionsaddons/l10n_sa_edi/models/account_edi_xml_ubl_21_zatca.py
- addons/l10n_sa_edi/models/account_journal.py 624 additions, 0 deletionsaddons/l10n_sa_edi/models/account_journal.py
- addons/l10n_sa_edi/models/account_move.py 204 additions, 0 deletionsaddons/l10n_sa_edi/models/account_move.py
- addons/l10n_sa_edi/models/account_tax.py 58 additions, 0 deletionsaddons/l10n_sa_edi/models/account_tax.py
- addons/l10n_sa_edi/models/res_company.py 93 additions, 0 deletionsaddons/l10n_sa_edi/models/res_company.py
- addons/l10n_sa_edi/models/res_config_settings.py 14 additions, 0 deletionsaddons/l10n_sa_edi/models/res_config_settings.py
- addons/l10n_sa_edi/models/res_partner.py 36 additions, 0 deletionsaddons/l10n_sa_edi/models/res_partner.py
- addons/l10n_sa_edi/security/ir.model.access.csv 2 additions, 0 deletionsaddons/l10n_sa_edi/security/ir.model.access.csv
- addons/l10n_sa_edi/static/src/scss/form_view.scss 21 additions, 0 deletionsaddons/l10n_sa_edi/static/src/scss/form_view.scss
- addons/l10n_sa_edi/tests/__init__.py 5 additions, 0 deletionsaddons/l10n_sa_edi/tests/__init__.py
addons/l10n_sa_edi/__init__.py
0 → 100644
addons/l10n_sa_edi/__manifest__.py
0 → 100644
addons/l10n_sa_edi/data/pre-hash_invoice.xsl
0 → 100644
addons/l10n_sa_edi/data/res_country_data.xml
0 → 100644
addons/l10n_sa_edi/data/ubl_21_zatca.xml
0 → 100644
This diff is collapsed.
addons/l10n_sa_edi/demo/demo_company.xml
0 → 100644
addons/l10n_sa_edi/models/__init__.py
0 → 100644
This diff is collapsed.
This diff is collapsed.
addons/l10n_sa_edi/models/account_journal.py
0 → 100644
This diff is collapsed.
addons/l10n_sa_edi/models/account_move.py
0 → 100644
addons/l10n_sa_edi/models/account_tax.py
0 → 100644
addons/l10n_sa_edi/models/res_company.py
0 → 100644
addons/l10n_sa_edi/models/res_partner.py
0 → 100644
addons/l10n_sa_edi/tests/__init__.py
0 → 100644
Please register or sign in to comment