<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
    <!-- Allow read certificates of my company-->
    <record id="facturae_digital_certificate" model="ir.rule">
        <field name="name">Facturae Digital Certificate</field>
        <field name="model_id" ref="l10n_es_edi_facturae.model_l10n_es_edi_facturae_certificate"/>
        <field name="groups" eval="[Command.link(ref('account.group_account_user')), Command.link(ref('account.group_account_manager'))]"/>
        <field name="domain_force">[('company_id', 'in', user.company_ids.ids)]</field>
    </record>
</odoo>
