<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_base_document_layout" model="ir.ui.view">
        <field name="name">Document Layout</field>
        <field name="model">base.document.layout</field>
        <field name="inherit_id" ref="account.view_base_document_layout"/>
        <field name="mode">extension</field>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='qr_code']" position="attributes">
                <attribute name="invisible" separator="or" add="country_code == 'IN'"/>
            </xpath>
            <xpath expr="//field[@name='account_number']" position="attributes">
                <attribute name="required" separator="and" add="country_code != 'IN'"/>
            </xpath>
        </field>
    </record>
</odoo>
