Coworking/coworking_coworker/views/res_partner_views.xml
2017-11-27 14:52:39 +01:00

29 lines
882 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form -->
<record id="view_form_res_partner" model="ir.ui.view">
<field name="name">>res.partner.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref ="base.view_partner_form" />
<field name="arch" type="xml">
<field name="is_company" position="before">
<field name="is_coworker" widget="radio" class="oe_edit_only" options="{'horizontal': true}"/>
</field>
<field name="parent_id" position="after">
<field name="coworker_type" attrs="{'invisible': [('is_coworker','!=', 'is_coworker')]}" />
<field name="contact_date" attrs="{'invisible': [('is_coworker','!=', 'is_coworker')]}"/>
</field>
<field name="email" position="after">
<field name="url" />
</field>
</field>
</record>
</odoo>