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.

69 lines
2.4 KiB

7 years ago
7 years ago
7 years ago
7 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="view_converter_convert_form" model="ir.ui.view">
  17. <field name="name">muk_converter_convert.form</field>
  18. <field name="model">muk_converter.convert</field>
  19. <field name="arch" type="xml">
  20. <form string="Convert File">
  21. <group states="export">
  22. <field invisible="1" name="state" />
  23. <group>
  24. <field name="input_name" invisible="1" />
  25. <field name="input_binary" filename="input_name" />
  26. </group>
  27. <group>
  28. <field name="format" />
  29. </group>
  30. </group>
  31. <div states="download">
  32. <field name="output_name" invisible="1" />
  33. <h3>Conversion Complete</h3>
  34. <p>The file has been successfully converted and can now be used.
  35. You can download the file by clicking on the link below.
  36. </p>
  37. <p>
  38. Here is the converted file:
  39. <field name="output_binary" filename="output_name" options="{'no_export': True}"/>
  40. </p>
  41. </div>
  42. <footer states="export">
  43. <button name="convert" string="Convert" type="object" class="btn-primary" />
  44. <button special="cancel" string="Cancel" type="object"
  45. class="btn-default" />
  46. </footer>
  47. <footer states="download">
  48. <button special="cancel" string="Close" type="object" class="btn-primary" />
  49. </footer>
  50. </form>
  51. </field>
  52. </record>
  53. <record id="action_converter_convert" model="ir.actions.act_window">
  54. <field name="name">Convert File</field>
  55. <field name="type">ir.actions.act_window</field>
  56. <field name="res_model">muk_converter.convert</field>
  57. <field name="view_type">form</field>
  58. <field name="view_mode">form</field>
  59. <field name="target">new</field>
  60. </record>
  61. </odoo>