class CompanyBranch(models.Model):
_name = 'company.branch'
_inherit = 'res.parnter'
is_branch = fields.Boolean( string=u'Is Branch', )
<record id="view_company_branch_form_inherited" model="ir.ui.view">
<field name="name">view.company.branch inherited</field>
<field name="model">company.branch</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="type">form</field>
<field name="mode">extension</field>
<field name="priority" eval="1" />
<field name="active" eval="True" />
<field name="arch" type="xml">
<xpath expr="//field[@name='vat']" position="after">
<field name="is_branch"></field>
</xpath>
</field>
</record>
ERROR: external id not found in the system