<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <!-- Inherit Users to Modify it -->
    <record id="view_users_form" model="ir.ui.view">
        <field name="name">res.users.view.form.inherit.size.restriction.for.attachments</field>
        <field name="model">res.users</field>
        <field name="inherit_id" ref="base.view_users_form"/>
        <field name="arch" type="xml">
            <xpath expr="//page[@name='access_rights']" position="inside">
                <label for="set_restriction"/>
                <field name="set_restriction"/>
                <label for="max_size" invisible="set_restriction == False"/>
                <field name="max_size" invisible="set_restriction == False"/>
            </xpath>
        </field>
    </record>
</odoo>
