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.

50 lines
1.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2017 Eficent Business and IT Consulting Services, S.L.
  4. Copyright 2017 Creu Blanca
  5. License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
  6. -->
  7. <odoo>
  8. <record id="barcode_action_form" model="ir.ui.view">
  9. <field name="name">barcode.action.form</field>
  10. <field name="model">barcode.action</field>
  11. <field name="arch" type="xml">
  12. <form string="Find">
  13. <div class="alert alert-success text-center o_form_header"
  14. role="alert" style="margin-bottom:0px;"
  15. attrs="{'invisible':[('state', '=', 'warning')]}">
  16. <bold><field name="status"/></bold>
  17. </div>
  18. <div class="alert alert-danger alert-dismissable text-center"
  19. role="alert" style="margin-bottom:0px;"
  20. attrs="{'invisible':[('state', '=', 'waiting')]}">
  21. <bold><field name="status"/></bold>
  22. </div>
  23. <field name="state" invisible="1"/>
  24. <field name="res_id" invisible="1"/>
  25. <field name="model" invisible="1"/>
  26. <field name="method" invisible="1"/>
  27. <field name="_barcode_scanned" widget="action_barcode_handler"/>
  28. <footer>
  29. <button
  30. name="action_cancel"
  31. string="Close"
  32. class="oe_link"
  33. special="cancel"
  34. />
  35. </footer>
  36. </form>
  37. </field>
  38. </record>
  39. <act_window id="barcode_action_action"
  40. name="Barcode Launcher"
  41. res_model="barcode.action"
  42. view_mode="form"
  43. view_type="form"
  44. target="new"/>
  45. </odoo>