partner_view.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_partner_form" model="ir.ui.view">
  5. <field name="name">view_partner_form</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='fax']" position="attributes">
  10. <attribute name="invisible">1</attribute>
  11. </xpath>
  12. <xpath expr="//notebook[@colspan='4']" position="inside">
  13. <page string="Historial Tareas de CRM">
  14. <field name="task_ids" widget="many2one_clickable">
  15. <tree editable="top" colors="red:expired_date == True and state == 'pending';gray:state == 'cancel';green:state == 'pending'">
  16. <field name="task_type_id" options='{"no_open": True, "no_create": 1, "no_create_edit": 1}' required="True"/>
  17. <field name="name"/>
  18. <field name="user_id" required="True"/>
  19. <field name="date_action_next"/>
  20. <field name="state"/>
  21. <field name="expired_date" invisible="1"/>
  22. <field name="description"/>
  23. <button name="action_done" string="Realizado" type="object" icon="gtk-apply" attrs="{'invisible':[('state','=','done')]}"/>
  24. <button name="action_done" string="Pendiente" type="object" icon="gtk-undo" attrs="{'invisible':[('state','=','pending')]}"/>
  25. <button name="action_cancel" string="Cancelado" type="object" icon="gtk-cancel" attrs="{'invisible':[('state','=','cancel')]}"/>
  26. </tree>
  27. </field>
  28. </page>
  29. </xpath>
  30. </field>
  31. </record>
  32. <record id="view_partner_social_form1" model="ir.ui.view">
  33. <field name="name">view_partner_social_form1</field>
  34. <field name="model">res.partner</field>
  35. <field name="inherit_id" ref="partner_social_fields.view_partner_social_form1"/>
  36. <field name="arch" type="xml">
  37. <group col="3" position="inside">
  38. <field name="instagram"/>
  39. <button name="goto_instagram" string="Ir" type="object"/>
  40. </group>
  41. </field>
  42. </record>
  43. <record id="view_partners_form_crm1" model="ir.ui.view">
  44. <field name="name">view_partners_form_crm1</field>
  45. <field name="model">res.partner</field>
  46. <field name="inherit_id" ref="crm.view_partners_form_crm1"/>
  47. <field name="arch" type="xml">
  48. <xpath expr="//button[@name='schedule_meeting']" position="attributes">
  49. <attribute name="invisible">1</attribute>
  50. </xpath>
  51. </field>
  52. </record>
  53. <record id="view_partners_form_crm_calls" model="ir.ui.view">
  54. <field name="name">view_partners_form_crm_calls</field>
  55. <field name="model">res.partner</field>
  56. <field name="inherit_id" ref="crm.view_partners_form_crm_calls"/>
  57. <field name="arch" type="xml">
  58. <xpath expr="//button[@name='%(crm.crm_case_categ_phone_incoming0)d']" position="attributes">
  59. <attribute name="invisible">1</attribute>
  60. </xpath>
  61. </field>
  62. </record>
  63. </data>
  64. </openerp>