diff --git a/addons/l10n_es_edi_sii/__manifest__.py b/addons/l10n_es_edi_sii/__manifest__.py index 96ce242593c1c844f95392ebcd43080192407cd6..7c9d8ca78292b362ee12b859dbf0496788b2217b 100644 --- a/addons/l10n_es_edi_sii/__manifest__.py +++ b/addons/l10n_es_edi_sii/__manifest__.py @@ -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', diff --git a/addons/l10n_es_edi_sii/security/l10n_es_edi_certificate.xml b/addons/l10n_es_edi_sii/security/l10n_es_edi_certificate.xml new file mode 100644 index 0000000000000000000000000000000000000000..d0847814bc35c330fea96ae9902ca04ea6e1fd9c --- /dev/null +++ b/addons/l10n_es_edi_sii/security/l10n_es_edi_certificate.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>