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.

48 lines
2.1 KiB

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