stock_assign_serial_views.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_assign_serial_numbers" model="ir.ui.view">
  4. <field name="name">stock_assign_serial_numbers</field>
  5. <field name="model">stock.assign.serial</field>
  6. <field name="arch" type="xml">
  7. <form string="Assign Serial Numbers">
  8. <group>
  9. <field name="move_id" invisible="1"/>
  10. <field name="product_id" readonly="1"/>
  11. <field name="next_serial_number"/>
  12. <field name="next_serial_count"/>
  13. </group>
  14. <footer>
  15. <button name="generate_serial_numbers" type="object" data-hotkey="q"
  16. string="Assign Serial Numbers" class="oe_highlight"/>
  17. <button special="cancel" data-hotkey="z" string="Cancel"/>
  18. </footer>
  19. </form>
  20. </field>
  21. </record>
  22. <record id="act_assign_serial_numbers" model="ir.actions.act_window">
  23. <field name="name">Assign Serial Numbers</field>
  24. <field name="type">ir.actions.act_window</field>
  25. <field name="res_model">stock.assign.serial</field>
  26. <field name="view_id" ref="view_assign_serial_numbers"/>
  27. <field name="view_mode">form</field>
  28. <field name="context">{}</field>
  29. <field name="target">new</field>
  30. </record>
  31. </odoo>