123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?xml version="1.0"?>
- <openerp>
- <data>
-
- <!-- Iniciativa - ocultar tab de informacion extra -->
- <record id="crm_lead_hide_tap" model="ir.ui.view">
- <field name="name">fields_security_crm.crm.lead.hide.tab</field>
- <field name="model">crm.lead</field>
- <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
- <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields_crm')])]"/>
- <field name="arch" type="xml">
- <xpath expr="//form/sheet/notebook//page[@string='Extra Info']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <field name="fax" position="attributes">
- <attribute name="invisible">1</attribute>
- </field>
- </field>
- </record>
-
- <!-- Iniciativa - cambiar el string del boton de llamadas -->
- <record id="crm_lead_change_button" model="ir.ui.view">
- <field name="name">fields_security_crm.crm.lead.change.button</field>
- <field name="model">crm.lead</field>
- <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
- <field name="arch" type="xml">
- <button name="427" position="replace">
- <button class="oe_inline oe_stat_button" type="action" context="{'default_opportunity_id': active_id, 'search_default_opportunity_id': active_id, 'default_partner_id': partner_id, 'default_duration': 1.0}" name="427" icon="fa-phone">
- <div>Llamadas</div>
- </button>
- </button>
- </field>
- </record>
- <!-- Oportunidad - Ocultar los grupos de campos que no se usan -->
- <record id="crm_lead_change_oportunity_groups" model="ir.ui.view">
- <field name="name">fields_security_crm.crm.lead.change.oportunity.groups</field>
- <field name="model">crm.lead</field>
- <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
- <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields_crm')])]"/>
- <field name="arch" type="xml">
- <xpath expr="//form/sheet/notebook//group[@string='Mailings']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <xpath expr="//form/sheet/notebook//group[@string='References']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <xpath expr="//form/sheet/notebook//group[@string='Misc']" position="attributes">
- <attribute name="attrs">{'invisible':True}</attribute>
- </xpath>
- <field name="fax" position="attributes">
- <attribute name="invisible">1</attribute>
- </field>
- </field>
- </record>
-
- <!-- Oportunidad - Cambiar el string del boton de llamadas -->
- <record id="crm_lead_change_change_oportunity" model="ir.ui.view">
- <field name="name">fields_security_crm.crm.lead.change.button.oportunity</field>
- <field name="model">crm.lead</field>
- <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
- <field name="arch" type="xml">
- <button name="427" position="replace">
- <button class="oe_inline oe_stat_button" type="action" context="{'default_opportunity_id': active_id, 'search_default_opportunity_id': active_id, 'default_partner_id': partner_id, 'default_duration': 1.0}" name="427" icon="fa-phone">
- <div>Llamadas</div>
- </button>
- </button>
- </field>
- </record>
- </data>
- </openerp>
|