From 53b20557be5ca52d84b124f1ba29b109406858b2 Mon Sep 17 00:00:00 2001 From: Mehdi Bendali Hacine <mebe@odoo.com> Date: Tue, 20 Jun 2023 12:51:29 +0000 Subject: [PATCH] [FIX] l10n_sa_edi: ZATCA tab visibility for non-sales journals closes odoo/odoo#125781 Signed-off-by: Josse Colpaert <jco@odoo.com> --- addons/l10n_sa_edi/views/account_journal_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_sa_edi/views/account_journal_views.xml b/addons/l10n_sa_edi/views/account_journal_views.xml index ebc40d282913..ba6b59190051 100644 --- a/addons/l10n_sa_edi/views/account_journal_views.xml +++ b/addons/l10n_sa_edi/views/account_journal_views.xml @@ -12,7 +12,7 @@ <field name="l10n_sa_compliance_csid_json" invisible="1"/> <field name="l10n_sa_production_csid_json" invisible="1"/> <field name="l10n_sa_compliance_checks_passed" invisible="1"/> - <page name="zatca_einvoicing" string="ZATCA" attrs="{'invisible': [('country_code', '!=', 'SA')]}"> + <page name="zatca_einvoicing" string="ZATCA" attrs="{'invisible': ['|', ('country_code', '!=', 'SA'), ('type', '!=', 'sale')]}"> <group> <group> <field name="l10n_sa_serial_number"/> -- GitLab