sale_view.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- <record model="ir.ui.view" id="stock_picking_disable_button_form_view">
  5. <field name="name">stock.picking.disable_button.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="force_assign" position="attributes">
  10. <attribute name="groups">stock.group_stock_force_availability</attribute>
  11. </button>
  12. </field>
  13. </record>
  14. <record model="ir.ui.view" id="stock_move_disable_button_form_view">
  15. <field name="name">stock.move.disable_button.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="force_assign" position="attributes">
  20. <attribute name="groups">stock.group_stock_force_availability</attribute>
  21. </button>
  22. </field>
  23. </record> -->
  24. <record model="ir.ui.view" id="sale_hide_makeinvoice_button_form_view">
  25. <field name="name">sale.sale.hide.makeinvoice.button.form</field>
  26. <field name="model">sale.order</field>
  27. <field name="inherit_id" ref="sale.view_order_form"/>
  28. <field name="arch" type="xml">
  29. <!-- <button name="force_assign" position="attributes">
  30. <attribute name="groups">sale.group_stock_force_availability</attribute>
  31. </button> -->
  32. <!-- <button name="create_invoice" string="CREATE INVOICE" type="object" class="btn-primary" groups="sale.group_hide_makeinvoice_button"/> -->
  33. <xpath expr="//button[@name='%(sale.action_view_sale_advance_payment_inv)d']" position="attributes">
  34. <attribute name="groups">sale.group_hide_makeinvoice_button</attribute>
  35. </xpath>
  36. <xpath expr="//header/button[@name='action_cancel']" position="attributes">
  37. <attribute name="groups">sale.group_hide_makeinvoice_button</attribute>
  38. </xpath>
  39. </field>
  40. </record>
  41. </data>
  42. </openerp>