2017-11-03 15:28:45 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<odoo>
|
|
|
|
|
|
|
|
<record id="view_form_coworker" model="ir.ui.view">
|
|
|
|
<field name="name">Coworker Form</field>
|
|
|
|
<field name="model">coworking.coworker</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Coworker">
|
|
|
|
<sheet>
|
|
|
|
<group name="group_top">
|
|
|
|
<group name="group_left">
|
2017-11-06 12:49:45 +01:00
|
|
|
<field name="contact_date" />
|
2017-11-03 15:28:45 +01:00
|
|
|
<field name="name" />
|
|
|
|
<field name="firstname" />
|
|
|
|
<field name="coworker_type" />
|
|
|
|
<field name="company_name" />
|
|
|
|
<field name="job"
|
|
|
|
attrs="{'invisible': [('company_name', '=', False)], 'required': [('company_name', '!=', False)]}" />
|
|
|
|
</group>
|
|
|
|
<group name="group_right">
|
|
|
|
<field name="street" />
|
|
|
|
<field name="postal_code" />
|
|
|
|
<field name="city" />
|
|
|
|
<field name="gsm" />
|
|
|
|
<field name="phone_number" />
|
|
|
|
<field name="email" />
|
|
|
|
<field name="url" />
|
|
|
|
</group>
|
|
|
|
<field name="note" />
|
|
|
|
<field name="is_done" />
|
|
|
|
<field name="is_active" readonly="1" />
|
|
|
|
</group>
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-06 12:49:45 +01:00
|
|
|
<record id="view_tree_coworker" model="ir.ui.view">
|
|
|
|
<field name="name">Coworker Tree</field>
|
|
|
|
<field name="model">coworking.coworker</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree>
|
|
|
|
<field name="name" />
|
|
|
|
<field name="firstname" />
|
|
|
|
<field name="company_name" />
|
|
|
|
<field name="gsm" />
|
|
|
|
<field name="email" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-03 15:28:45 +01:00
|
|
|
</odoo>
|