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.

43 lines
2.1 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 2017 Tecnativa - Jairo Llopis
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record id="view_partner_form" model="ir.ui.view">
  6. <field name="name">Partner phonecall schedule</field>
  7. <field name="model">res.partner</field>
  8. <field name="inherit_id" ref="base.view_partner_form" />
  9. <field name="groups_id" eval="[(4, ref('base.group_partner_manager'), 0)]" />
  10. <field name="arch" type="xml">
  11. <xpath expr="//notebook">
  12. <!-- `many2many_tags` widget would not allow the user to click
  13. and edit a calendar record as the list widget does;
  14. management menus are under global settings, so only
  15. admins could do it; we need plenty of space to display
  16. the aggregated schedule. All that said, we have to use a
  17. list widget inside a dedicated page. -->
  18. <page string="Phone calls" name="phonecalls">
  19. <group>
  20. <field name="phonecall_available" />
  21. <field name="phonecall_calendar_ids" />
  22. <field name="phonecall_calendar_attendance_ids" />
  23. </group>
  24. </page>
  25. </xpath>
  26. </field>
  27. </record>
  28. <record id="view_res_partner_filter" model="ir.ui.view">
  29. <field name="name">Partner phonecall availability</field>
  30. <field name="model">res.partner</field>
  31. <field name="inherit_id" ref="base.view_res_partner_filter" />
  32. <field name="groups_id" eval="[(4, ref('base.group_partner_manager'), 0)]" />
  33. <field name="arch" type="xml">
  34. <xpath expr="//separator[last()]" position="before">
  35. <filter
  36. string="Available for phone calls now"
  37. name="phonecall_available"
  38. domain="[('phonecall_available', '=', True)]"
  39. />
  40. </xpath>
  41. </field>
  42. </record>
  43. </odoo>