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.

72 lines
2.3 KiB

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