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.

67 lines
2.3 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017 MuK IT GmbH
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <odoo>
  16. <record id="send_notifications_view_form" model="ir.ui.view">
  17. <field name="name">Send Notifications</field>
  18. <field name="model">muk_web_client_notification.send_notifications</field>
  19. <field name="arch" type="xml">
  20. <form string="Send Notifications">
  21. <div class="oe_title">
  22. <label for="title" class="oe_edit_only"/>
  23. <h1>
  24. <field name="title" />
  25. </h1>
  26. </div>
  27. <group>
  28. <field name="user_ids" widget="many2many_tags" options="{'no_create_edit': True}" />
  29. </group>
  30. <group>
  31. <group>
  32. <field name="type" />
  33. <field name="action_id" />
  34. </group>
  35. <group>
  36. <field name="sticky" attrs="{'readonly': [('action_id', '!=', False)]}" />
  37. <field name="close" attrs="{'invisible': [('action_id', '=', False)]}" />
  38. </group>
  39. </group>
  40. <label for="message" class="oe_edit_only"/>
  41. <field name="message" />
  42. <footer>
  43. <button string="Send" name="send_notifications" type="object"
  44. class="btn-primary" />
  45. <button string="Cancel" class="btn-default" special="cancel" />
  46. </footer>
  47. </form>
  48. </field>
  49. </record>
  50. <act_window
  51. id="act_send_notifications"
  52. name="Send Notifications"
  53. src_model="res.users"
  54. res_model="muk_web_client_notification.send_notifications"
  55. view_type="form"
  56. view_mode="form"
  57. target="new"
  58. key2="client_action_multi"
  59. groups="base.group_erp_manager"/>
  60. </odoo>