mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
26 lines
837 B
XML
26 lines
837 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
© 2010-2016 Akretion (http://www.akretion.com/)
|
|
@author David BEAL <david.beal@akretion.com>
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
<!-- Set country_id field to required on partner form view -->
|
|
<record id="view_partner_form" model="ir.ui.view">
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='country_id']" position="attributes">
|
|
<attribute name="required">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='country_id']"
|
|
position="attributes">
|
|
<attribute name="required">1</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|