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.

65 lines
2.1 KiB

6 years ago
  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. </group>
  34. <group>
  35. <field name="sticky" />
  36. </group>
  37. </group>
  38. <label for="message" class="oe_edit_only"/>
  39. <field name="message" />
  40. <footer>
  41. <button string="Send" name="send_notifications" type="object"
  42. class="btn-primary" />
  43. <button string="Cancel" class="btn-default" special="cancel" />
  44. </footer>
  45. </form>
  46. </field>
  47. </record>
  48. <act_window
  49. id="act_send_notifications"
  50. name="Send Notifications"
  51. src_model="res.users"
  52. res_model="muk_web_client_notification.send_notifications"
  53. view_type="form"
  54. view_mode="form"
  55. target="new"
  56. key2="client_action_multi"
  57. groups="base.group_erp_manager"/>
  58. </odoo>