<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
    <record id="portal_account_invoice_user_rule" model="ir.rule">
        <field name="name">Portal Only Personal Account Invoices</field>
        <field name="model_id" ref="account.model_account_move" />
        <field name="domain_force">
            [('message_partner_ids', 'child_of', user.partner_id.ids)]
        </field>
        <field name="groups" eval="[(4, ref('base.group_portal'))]" />
    </record>
    <record id="portal_account_invoice_line_rule" model="ir.rule">
        <field name="name">Portal Only Personal Invoice Lines</field>
        <field name="model_id" ref="account.model_account_move_line" />
        <field name="domain_force">
            [('move_id.message_partner_ids', 'child_of', user.partner_id.ids)]
        </field>
        <field name="groups" eval="[(4, ref('base.group_portal'))]" />
    </record>
</odoo>
