stock.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_picking_form" model="ir.ui.view">
  5. <field name="name">view_picking_form</field>
  6. <field name="model">stock.picking</field>
  7. <field name="inherit_id" ref="stock.view_picking_form"/>
  8. <field name="arch" type="xml">
  9. <button name="action_confirm" states="draft" position="replace">
  10. <button name="action_confirm" states="draft" string="Mark as Todo" type="object" class="oe_highlight" groups="base.group_user" invisible="1"/>
  11. </button>
  12. </field>
  13. </record>
  14. <record id="view_move_form" model="ir.ui.view">
  15. <field name="name">view_move_form</field>
  16. <field name="model">stock.move</field>
  17. <field name="inherit_id" ref="stock.view_move_form"/>
  18. <field name="arch" type="xml">
  19. <button name="action_confirm" states="draft" position="replace">
  20. <button name="action_confirm" states="draft" string="Mark as Todo" type="object" class="oe_highlight" groups="base.group_user" invisible="1"/>
  21. </button>
  22. <button name="force_assign" states="confirmed" position="replace">
  23. <button name="force_assign" states="confirmed" string="Set Available" type="object" class="oe_highlight" invisible="1"/>
  24. </button>
  25. </field>
  26. </record>
  27. <record id="view_move_picking_form" model="ir.ui.view">
  28. <field name="name">view_move_picking_form</field>
  29. <field name="model">stock.move</field>
  30. <field name="inherit_id" ref="stock.view_move_picking_form"/>
  31. <field name="arch" type="xml">
  32. <button name="action_confirm" states="draft" position="replace">
  33. <button name="action_confirm" states="draft" string="Confirm" type="object" groups="base.group_user" invisible="1"/>
  34. </button>
  35. <button name="force_assign" states="confirmed" position="replace">
  36. <button name="force_assign" states="confirmed" string="Force Availability" type="object" groups="base.group_user" invisible="1"/>
  37. </button>
  38. </field>
  39. </record>
  40. </data>
  41. </openerp>