urd_odoo_addons/groupeurd_crm/views.xml
Olivier Sarrat 9fef05c3eb groupeurd_crm v0.2
Version 0.2 du module groupeurd_crm avec les nouveaux besoins couverts suivants:
		- Publier en webpage des listes de nom/id_externe pour les Listes de diffusion, les Catégories de contact, et les Civilités de contact
		- Ajouter une liste de 0 à 5 "Pays d'expertise"
		- Ajouter un lien direct vers profil LinkedIn pour pâlier défaut plugin existant
		- Rendre le champ "Relation interne principale" accessible comme champ de recherche avancé, et le remplir par défaut par le créateur du contact
		- Renommer "Nom" en "Nom de famille" pour distinguer le nom de famille du "Nom" qui est l'association Prénom + Nom de famille
2018-04-18 17:20:24 +02:00

166 lines
7.6 KiB
XML

<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>
<!-- 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" />
<field name="function" attrs="{'invisible': [('is_company','=',True)]}" />
<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 et pays d'expertise -->
<xpath expr="//page[@name='sales_purchases']" position="attributes">
<attribute name="string">Autres</attribute>
</xpath>
<xpath expr="//field[@name='lang']" position="replace">
<field name="secondary_languages" string="Langues secondaires" />
</xpath>
<xpath expr="//field[@name='date']" position="replace">
<field name="country_experiences" string="Pays d'expertise" />
</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="//field[@name='ref']" position="replace" />
<xpath expr="//field[@name='active']" position="after">
<field name="ref" />
</xpath>
<xpath expr="//field[@name='ref']" position="after">
<field name="date" />
</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" />
<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>
<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>
</xpath>
<xpath expr="//page[@name='mailing_subscriptions']" position="after">
<page name="other_contact_info" string="Adresse postale">
<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="{&quot;no_open&quot;: 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="{&quot;no_open&quot;: True, &quot;no_create&quot;: True}" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
</div>
</group>
<group>
<field name="fax"/>
</group>
</page>
</xpath>
</field>
</record>
<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"/>
<field name="linkedin"/>
<button name="goto_linkedin" string="Voir" type="object"/>
</group>
</xpath>
</field>
</record>
<!-- 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>
</data>
</openerp>