mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
32 lines
945 B
XML
32 lines
945 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
Copyright (C) 2010-2014 Akretion (http://www.akretion.com/)
|
|
@author David BEAL <david.beal@akretion.com>
|
|
The licence is in the file __openerp__.py
|
|
-->
|
|
|
|
<openerp>
|
|
<data>
|
|
|
|
<!-- Add required field country_id on view_partner_form -->
|
|
<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="attrs">{'readonly': [('use_parent_address','=',True)], 'required': True}</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='child_ids']/form//field[@name='country_id']"
|
|
position="attributes">
|
|
<attribute name="attrs">{'required': True}</attribute>
|
|
</xpath>
|
|
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|