102 lines
3.7 KiB
XML
Executable File
102 lines
3.7 KiB
XML
Executable File
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
|
|
<!--modification du vue formulaire -->
|
|
<record id="view_partner_form_persocontact_inherited" model="ir.ui.view">
|
|
<field name="name">base.view_partner_form.perso.inherited</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='website']" position="after">
|
|
<field name="isVip"/>
|
|
<field name="dateOfFirstContact"/>
|
|
<field name="fullAddress"/>
|
|
<field name="type_id" attrs="{'invisible':[('is_company','=', True)] , 'required' : [('isVip', '=', True)]}" widget="selection" domain="[('Actif','=',True)]"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<!--modification du vue tree-->
|
|
<record id="view_partner_tree_persocontact_inherited" model="ir.ui.view">
|
|
<field name="name">base.tree.perso.inherited</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_tree"/>
|
|
<field name="arch" type="xml">
|
|
<field name="email" position="after">
|
|
<field name="dateOfFirstContact"/>
|
|
<field name="type_id"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<!--modification du vue search-->
|
|
<record id="view_partner_search_persocontact_inherited" model="ir.ui.view">
|
|
<field name="name">base.srch.perso.inherited</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/>
|
|
<field name="arch" type="xml">
|
|
<field name="name" position="after">
|
|
<field name="type_id"/>
|
|
</field>
|
|
<filter name="customer" position="after">
|
|
<filter string="VIP" name="vip" domain="[('isVip','=',1)]"/>
|
|
</filter>
|
|
</field>
|
|
</record>
|
|
|
|
<!--modificationvue Kanban-->
|
|
<record id="view_partner_kanban_persocontact_inherited" model="ir.ui.view">
|
|
<field name="name">base.kanban.perso.inherited</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
|
|
<field name="arch" type="xml">
|
|
<field name="display_name" position="after">
|
|
<field name="dateOfFirstContact"/>
|
|
<field name="type_id"/>
|
|
</field>
|
|
<xpath expr="//div[@class='oe_kanban_details']/ul" position="inside">
|
|
<li t-if="record.type_id.raw_value"><field name="type_id"/>, <field name="country_id"/></li>
|
|
<li t-if="record.dateOfFirstContact.raw_value"><field name="dateOfFirstContact"/></li>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
</record>
|
|
|
|
<!--vue Calendrier-->
|
|
<record id="view_contact_calendar" model="ir.ui.view">
|
|
<field name="name">partner.calendar</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="priority" eval="2"/>
|
|
<field name="arch" type="xml">
|
|
<calendar string="Calendar" date_start="dateOfFirstContact" date_stop="dateOfFirstContact"
|
|
readonly_form_view_id="%(view_partner_form_persocontact_inherited)s"
|
|
event_open_popup="false"
|
|
color="name">
|
|
<field name="name"/>
|
|
</calendar>
|
|
</field>
|
|
</record>
|
|
|
|
<!--vue pivot-->
|
|
<record id="view_contact_pivot" model="ir.ui.view">
|
|
<field name="name">partner.pivot</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="arch" type="xml">
|
|
<pivot string="Contacts">
|
|
<field name="name" type="row"/>
|
|
<field name="type" type="row"/>
|
|
<field name="dateOfFirstContact" type="row"/>
|
|
</pivot>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="contacts.action_contacts" model="ir.actions.act_window">
|
|
<field name="view_mode">kanban,tree,calendar,pivot,graph,form</field>
|
|
</record>
|
|
|
|
|
|
</data>
|
|
</odoo>
|