fields_view.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <!-- Iniciativa - ocultar tab de informacion extra -->
  5. <record id="crm_lead_hide_tap" model="ir.ui.view">
  6. <field name="name">fields_security_crm.crm.lead.hide.tab</field>
  7. <field name="model">crm.lead</field>
  8. <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
  9. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields_crm')])]"/>
  10. <field name="arch" type="xml">
  11. <xpath expr="//form/sheet/notebook//page[@string='Extra Info']" position="attributes">
  12. <attribute name="attrs">{'invisible':True}</attribute>
  13. </xpath>
  14. <field name="fax" position="attributes">
  15. <attribute name="invisible">1</attribute>
  16. </field>
  17. </field>
  18. </record>
  19. <!-- Iniciativa - cambiar el string del boton de llamadas -->
  20. <record id="crm_lead_change_button" model="ir.ui.view">
  21. <field name="name">fields_security_crm.crm.lead.change.button</field>
  22. <field name="model">crm.lead</field>
  23. <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
  24. <field name="arch" type="xml">
  25. <button name="427" position="replace">
  26. <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">
  27. <div>Llamadas</div>
  28. </button>
  29. </button>
  30. </field>
  31. </record>
  32. <!-- Oportunidad - Ocultar los grupos de campos que no se usan -->
  33. <record id="crm_lead_change_oportunity_groups" model="ir.ui.view">
  34. <field name="name">fields_security_crm.crm.lead.change.oportunity.groups</field>
  35. <field name="model">crm.lead</field>
  36. <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
  37. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields_crm')])]"/>
  38. <field name="arch" type="xml">
  39. <xpath expr="//form/sheet/notebook//group[@string='Mailings']" position="attributes">
  40. <attribute name="attrs">{'invisible':True}</attribute>
  41. </xpath>
  42. <xpath expr="//form/sheet/notebook//group[@string='References']" position="attributes">
  43. <attribute name="attrs">{'invisible':True}</attribute>
  44. </xpath>
  45. <xpath expr="//form/sheet/notebook//group[@string='Misc']" position="attributes">
  46. <attribute name="attrs">{'invisible':True}</attribute>
  47. </xpath>
  48. <field name="fax" position="attributes">
  49. <attribute name="invisible">1</attribute>
  50. </field>
  51. </field>
  52. </record>
  53. <!-- Oportunidad - Cambiar el string del boton de llamadas -->
  54. <record id="crm_lead_change_change_oportunity" model="ir.ui.view">
  55. <field name="name">fields_security_crm.crm.lead.change.button.oportunity</field>
  56. <field name="model">crm.lead</field>
  57. <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
  58. <field name="arch" type="xml">
  59. <button name="427" position="replace">
  60. <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">
  61. <div>Llamadas</div>
  62. </button>
  63. </button>
  64. </field>
  65. </record>
  66. </data>
  67. </openerp>