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.

70 lines
2.5 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="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_url" attrs="{'invisible':[('input_url','=',False)]}" readonly="1" />
  26. <field name="input_binary" filename="input_name" attrs="{'invisible':[('input_url','!=',False)]}" />
  27. </group>
  28. <group>
  29. <field name="format" />
  30. </group>
  31. </group>
  32. <div states="download">
  33. <field name="output_name" invisible="1" />
  34. <h3>Conversion Complete</h3>
  35. <p>The file has been successfully converted and can now be used.
  36. You can download the file by clicking on the link below.
  37. </p>
  38. <p>
  39. Here is the converted file:
  40. <field name="output_binary" filename="output_name" options="{'no_export': True}"/>
  41. </p>
  42. </div>
  43. <footer states="export">
  44. <button name="convert" string="Convert" type="object" class="btn-primary" />
  45. <button special="cancel" string="Cancel" type="object"
  46. class="btn-default" />
  47. </footer>
  48. <footer states="download">
  49. <button special="cancel" string="Close" type="object" class="btn-primary" />
  50. </footer>
  51. </form>
  52. </field>
  53. </record>
  54. <record id="action_converter_convert" model="ir.actions.act_window">
  55. <field name="name">Convert File</field>
  56. <field name="type">ir.actions.act_window</field>
  57. <field name="res_model">muk_converter.convert</field>
  58. <field name="view_type">form</field>
  59. <field name="view_mode">form</field>
  60. <field name="target">new</field>
  61. </record>
  62. </odoo>