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.

74 lines
2.4 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 Converter
  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 Lesser General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (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 Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <odoo>
  18. <record id="view_converter_convert_form" model="ir.ui.view">
  19. <field name="name">muk_converter_convert.form</field>
  20. <field name="model">muk_converter.convert</field>
  21. <field name="arch" type="xml">
  22. <form string="Convert File">
  23. <group states="export">
  24. <field invisible="1" name="state" />
  25. <group>
  26. <field name="input_name" invisible="1" />
  27. <field name="input_binary" filename="input_name" />
  28. </group>
  29. <group>
  30. <field name="format" />
  31. </group>
  32. </group>
  33. <div states="download">
  34. <field name="output_name" invisible="1" />
  35. <h3>Conversion Complete</h3>
  36. <p>The file has been successfully converted and can now be used.
  37. You can download the file by clicking on the link below.
  38. </p>
  39. <p>
  40. Here is the converted file:
  41. <field name="output_binary" filename="output_name" options="{'no_export': True}"/>
  42. </p>
  43. </div>
  44. <footer states="export">
  45. <button name="convert" string="Convert" type="object" class="btn-primary" />
  46. <button special="cancel" string="Cancel" type="object"
  47. class="btn-default" />
  48. </footer>
  49. <footer states="download">
  50. <button special="cancel" string="Close" type="object" class="btn-primary" />
  51. </footer>
  52. </form>
  53. </field>
  54. </record>
  55. <record id="action_converter_convert" model="ir.actions.act_window">
  56. <field name="name">Convert File</field>
  57. <field name="type">ir.actions.act_window</field>
  58. <field name="res_model">muk_converter.convert</field>
  59. <field name="view_type">form</field>
  60. <field name="view_mode">form</field>
  61. <field name="target">new</field>
  62. </record>
  63. </odoo>