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.

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