31 lines
1.2 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="partner_with_auto_data_view_form" model="ir.ui.view">
<field name="name">Partner with auto data view form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="l10n_ru_doc.view_partner_ru_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='ogrn']" position="attributes">
<attribute name="widget">search</attribute>
</xpath>
<xpath expr="//field[@name='psrn_sp']" position="attributes">
<attribute name="widget">search</attribute>
</xpath>
</field>
</record>
<record id="partner_with_auto_data_view_form2" model="ir.ui.view">
<field name="name">Partner with auto data view form 2</field>
<field name="model">res.partner</field>
<field name="priority">2</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='vat']" position="attributes">
<attribute name="widget">search</attribute>
</xpath>
</field>
</record>
</odoo>