You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.8 KiB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <!--
  4. Copyright 2016 Odoo SA <https://www.odoo.com>
  5. Copyright 2018 Therp BV <http://therp.nl>
  6. Copyright 2018 Eficent <http://www.eficent.com>
  7. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
  8. -->
  9. <record model="ir.ui.view" id="crm_case_kanban_view_leads">
  10. <field name="name">CRM - Leads Kanban</field>
  11. <field name="model">crm.lead</field>
  12. <field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
  13. <field name="arch" type="xml">
  14. <field name="message_needaction_counter" position="after">
  15. <field name="activity_ids"/>
  16. <field name="nbr_activities"/>
  17. </field>
  18. <xpath expr="//div[@class='oe_kanban_content']" position="inside">
  19. Next activity:
  20. <div class="text-muted">
  21. <t t-if="record.activity_date_deadline.raw_value and record.activity_date_deadline.raw_value lt (new Date())" t-set="red">oe_kanban_text_red</t>
  22. <span t-attf-class="#{red || ''}">
  23. <field name="activity_date_deadline"/>
  24. <t t-if="record.activity_date_deadline.raw_value"> : </t>
  25. <field name="activity_summary"/>
  26. </span>
  27. </div>
  28. <div t-if="record.nbr_activities.raw_value">
  29. <field name="activity_ids" widget="kanban_activity"/>
  30. </div>
  31. </xpath>
  32. </field>
  33. </record>
  34. <record model="ir.ui.view" id="crm_case_form_view_leads">
  35. <field name="name">CRM - Leads Form</field>
  36. <field name="model">crm.lead</field>
  37. <field name="inherit_id" ref="crm.crm_case_form_view_leads" />
  38. <field name="arch" type="xml">
  39. <xpath expr="//div[@class='oe_chatter']/field[@name='message_follower_ids']" position="after">
  40. <field name="activity_ids" widget="mail_activity" />
  41. </xpath>
  42. </field>
  43. </record>
  44. <record model="ir.ui.view" id="crm_case_form_view_oppor">
  45. <field name="name">Opportunities</field>
  46. <field name="model">crm.lead</field>
  47. <field name="inherit_id" ref="crm.crm_case_form_view_oppor" />
  48. <field name="arch" type="xml">
  49. <xpath expr="//div[@class='oe_chatter']/field[@name='message_follower_ids']" position="after">
  50. <field name="activity_ids" widget="mail_activity" />
  51. </xpath>
  52. <xpath expr="//sheet/group/group[2]/label" position="attributes">
  53. <attribute name="invisible">True</attribute>
  54. </xpath>
  55. <xpath expr="//sheet/group/group[2]/div" position="attributes">
  56. <attribute name="invisible">True</attribute>
  57. </xpath>
  58. </field>
  59. </record>
  60. </odoo>