2017-02-20 10:12:42 +01:00
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
VIEWS
|
|
|
|
-->
|
|
|
|
|
|
|
|
<record id="contact_edition_form" model="ir.ui.view">
|
|
|
|
<field name="name">Contact edition form</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<!-- Masquer les boutons "Opportunités", "Rendez-vous" et "Appels" de la fiche contact -->
|
|
|
|
<xpath expr="//div[@name='buttons']" position="attributes">
|
|
|
|
<attribute name="groups">base.group_erp_manager</attribute>
|
|
|
|
</xpath>
|
|
|
|
|
2017-02-20 17:08:24 +01:00
|
|
|
<!-- Colonne gauche de l'écran principal -->
|
|
|
|
<xpath expr="//field[@name='title']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='function']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='email']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='website']" position="replace" />
|
|
|
|
<xpath expr="//label[@string='Address']" position="before">
|
|
|
|
<field name="title" />
|
2017-03-08 15:33:32 +01:00
|
|
|
<field name="function" attrs="{'invisible': [('is_company','=',True)]}" />
|
2017-02-20 17:08:24 +01:00
|
|
|
<field name="email" />
|
|
|
|
<field name="website" widget="url" placeholder="e.g. www.urd.org"/>
|
|
|
|
</xpath>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Renommer onglet "Achats/Ventes" en "Autres", et y mettre les langues secondaires -->
|
|
|
|
<xpath expr="//page[@name='sales_purchases']" position="attributes">
|
|
|
|
<attribute name="string">Autres</attribute>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='user_id']" position="attributes">
|
|
|
|
<attribute name="string">Relation interne principale</attribute>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='lang']" position="replace">
|
|
|
|
<field name="secondary_language1" string="Langue secondaire 1" />
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='secondary_language1']" position="after">
|
|
|
|
<field name="secondary_language2" string="Langue secondaire 2" />
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='secondary_language2']" position="after">
|
|
|
|
<field name="secondary_language3" string="Langue secondaire 3" />
|
|
|
|
</xpath>
|
|
|
|
<!-- Mettre la langue principale sur l'écran principal -->
|
|
|
|
<xpath expr="//field[@name='title']" position="after">
|
|
|
|
<field name="lang" string="Langue principale" />
|
|
|
|
</xpath>
|
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//label[@string='Address']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='use_parent_address']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='street']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='street2']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='city']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='state_id']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='zip']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='country_id']" position="replace" />
|
|
|
|
<xpath expr="//div[@class='address_format']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='fax']" position="replace" />
|
|
|
|
|
|
|
|
|
2017-03-08 15:33:32 +01:00
|
|
|
<xpath expr="//page[@name='internal_notes']" position="after">
|
|
|
|
<page name="sigmah_adoption" string="Adoption Sigmah" attrs="{'invisible': [('is_company','=',False)]}">
|
|
|
|
<group>
|
|
|
|
<field name="yearly_budget" />
|
|
|
|
<field name="sigmah_adoption_status" />
|
|
|
|
<field name="sigmah_package" />
|
|
|
|
<field name="sigmah_use_start" />
|
|
|
|
<field name="sigmah_autonomous_hosting" />
|
|
|
|
<field name="sigmah_users_count" />
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</xpath>
|
|
|
|
|
2017-02-20 17:08:24 +01:00
|
|
|
|
2017-02-20 10:12:42 +01:00
|
|
|
<xpath expr="//page[@name='internal_notes']" position="before">
|
|
|
|
<page name="mailing_subscriptions" string="Listes de diffusion">
|
|
|
|
<group>
|
|
|
|
<field name="list_ids" widget="many2many_checkboxes" string="Abonner à:" />
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="contact_ids" string="Abonnements" readonly="1" />
|
|
|
|
</group>
|
|
|
|
</page>
|
2017-02-20 17:08:24 +01:00
|
|
|
</xpath>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//page[@name='mailing_subscriptions']" position="after">
|
2017-03-08 15:33:32 +01:00
|
|
|
<page name="other_contact_info" string="Adresse postale">
|
2017-02-20 17:08:24 +01:00
|
|
|
<group>
|
|
|
|
<label for="street" string="Address"/>
|
|
|
|
<div>
|
|
|
|
<div class="oe_edit_only">
|
|
|
|
<field name="use_parent_address" class="oe_inline" on_change="onchange_address(use_parent_address, parent_id)" attrs="{'invisible': ['|', ('is_company', '=', True),('parent_id', '=', False)]}"/>
|
|
|
|
<label for="use_parent_address" attrs="{'invisible': ['|', ('is_company', '=', True), ('parent_id', '=', False)]}"/>
|
|
|
|
</div>
|
|
|
|
<button name="open_parent" type="object" string="(edit company address)" class="oe_link oe_edit_only" attrs="{'invisible': ['|',('parent_id','=', False),('use_parent_address','=',False)]}"/>
|
|
|
|
<field name="street" placeholder="Street..." attrs="{'readonly': [('use_parent_address','=',True)]}"/>
|
|
|
|
<field name="street2" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
|
|
|
|
<div class="address_format">
|
|
|
|
<field name="city" placeholder="City" style="width: 40%" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
|
|
|
|
<field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%" options="{"no_open": True}" on_change="onchange_state(state_id)" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
|
|
|
|
<field name="zip" placeholder="ZIP" style="width: 20%" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
|
|
|
|
</div>
|
|
|
|
<field name="country_id" placeholder="Country" class="oe_no_button" options="{"no_open": True, "no_create": True}" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
|
|
|
|
</div>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<field name="fax"/>
|
|
|
|
</group>
|
|
|
|
</page>
|
2017-02-20 10:12:42 +01:00
|
|
|
</xpath>
|
2017-02-20 17:08:24 +01:00
|
|
|
|
2017-02-20 10:12:42 +01:00
|
|
|
</field>
|
|
|
|
</record>
|
2017-02-20 17:08:24 +01:00
|
|
|
<record id="view_partner_social_form2" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.social.inherit2</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="partner_social_fields.view_partner_social_form1"/>
|
|
|
|
|
|
|
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
|
|
|
<!-- Colonne droite de l'écran principal -->
|
|
|
|
<xpath expr="//field[@name='skype']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='facebook']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='twitter']" position="replace" />
|
|
|
|
<xpath expr="//button[@name='goto_facebook']" position="replace" />
|
|
|
|
<xpath expr="//button[@name='goto_twitter']" position="replace" />
|
|
|
|
<xpath expr="//field[@name='mobile']" position="after">
|
|
|
|
<field name="skype" />
|
|
|
|
<group col="3" colspan="2">
|
|
|
|
<field name="twitter" />
|
|
|
|
<button name="goto_twitter" string="Voir" type="object"/>
|
|
|
|
<field name="facebook" />
|
|
|
|
<button name="goto_facebook" string="Voir" type="object"/>
|
|
|
|
</group>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
</record>
|
|
|
|
|
2017-02-20 10:12:42 +01:00
|
|
|
|
|
|
|
<!-- Masquer la page "Calendar ICS" aux utilisateurs autres qu'admin -->
|
|
|
|
<record id="contact_edition_form_ics" model="ir.ui.view">
|
|
|
|
<field name="name">Contact edition form with ICS only for admin</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="calendar_ics.view_partner_form" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//page[@name='ics']" position="attributes">
|
|
|
|
<attribute name="groups">base.group_erp_manager</attribute>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-03-08 15:33:32 +01:00
|
|
|
|
2017-02-20 10:12:42 +01:00
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|