[FIX] l10n_es_edi_sii: add company rule for certificates

X-original-commit: 25d6513897e7e029a5fbfd37f2e6617bebad5e30
Part-of: odoo/odoo#122691
This commit is contained in:
Josse Colpaert
2023-05-31 09:23:09 +02:00
committed by Stanislas Gueniffey
parent 650155010f
commit 1b1f1f485d
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@
'data/res_partner_data.xml',
'security/ir.model.access.csv',
'security/l10n_es_edi_certificate.xml',
'views/account_tax_views.xml',
'views/l10n_es_edi_certificate_views.xml',
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<!-- Allow access to certificates of current company/companies -->
<record id="l10n_ec_digital_certificate" model="ir.rule">
<field name="name">Spanish Digital Certificate</field>
<field name="model_id" ref="l10n_es_edi_sii.model_l10n_es_edi_certificate"/>
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
</odoo>