<?xml version="1.0" encoding="utf-8" ?>
<odoo>

  <record id="view_partner_purchase_form" model="ir.ui.view">
    <field name="name">res.partner.purchase.form.inherit</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_partner_form" />
    <field name="arch" type="xml">
      <group name="purchase" position="inside">
        <field
                    name="purchase_incoterm_id"
                    attrs="{'readonly': [('parent_id','!=',False)]}"
                />
        <field
                    name="purchase_incoterm_address_id"
                    attrs="{'readonly': [('parent_id','!=',False)]}"
                />
      </group>
    </field>
  </record>

</odoo>
