[FIX] l10n_id_efaktur: Fix option fields visibility in multi-company

The aim of this commit is to fix an issue where the settings fields for the Indonesian localization were visible in all companies of a database.

Context:
In a multi-company environment, a company may have its fiscal country set to Indonesia and have the Indonesian localization activated, but this should only affect the options shown in the accounting settings for that specific company.

Previous to this commit:
When a user activates the Indonesian localization, the settings fields for the localization would be visible in the accounting settings for all companies of the database.

After this commit:
The settings fields for the Indonesian localization will now only be visible in the accounting settings for the specific companies located in Indonesia.

closes odoo/odoo#111285

Task-id: 2854025
X-original-commit: 045e18a624e9261b8650c71cc9999126320648ff
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
This commit is contained in:
Mohammed Erradi (moer)
2023-01-27 23:17:50 +01:00
parent eb32a545c3
commit 9a84fe3520
@@ -7,7 +7,7 @@
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//block[@id='invoicing_settings']" position="after">
<block title="Indonesian Localization" id="l10n_cl_section">
<block title="Indonesian Localization" id="l10n_cl_section" attrs="{'invisible': [('country_code', '!=', 'ID')]}">
<setting company_dependent="1">
<div class="content-group">
<div class="row mt16">