stock_transfer_order.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Override workflow -->
  5. <record id="sale.trans_wait_invoice_invoice" model="workflow.transition">
  6. <field name="act_from" ref="sale.act_router"/>
  7. <field name="act_to" ref="sale.act_wait_invoice"/>
  8. </record>
  9. <record id="sale.trans_wait_ship_ship" model="workflow.transition">
  10. <field name="act_from" ref="sale.act_wait_ship"/>
  11. <field name="act_to" ref="sale.act_ship"/>
  12. <field name="condition">procurement_needed() and (transfered == True) and ((order_policy!='prepaid') or invoiced)</field>
  13. </record>
  14. <record id="sale_order_form_invoice_credit" model="ir.ui.view">
  15. <field name="name">sale_order_form_invoice_credit</field>
  16. <field name="model">sale.order</field>
  17. <field name="inherit_id" ref="sale.view_order_form"/>
  18. <field name="arch" type="xml">
  19. <button name="invoice_cancel" states="invoice_except" position="after">
  20. <button name="stock_transfer_action" string="Transferencia Interna" type="object" attrs="{'invisible': ['|',('invoice_exists', '=', True),('state','!=','progress')]}" groups="stock.group_stock_manager"/>
  21. </button>
  22. </field>
  23. </record>
  24. <record id="inherit_view_picking_form" model="ir.ui.view">
  25. <field name="name">inherit_view_picking_form</field>
  26. <field name="model">stock.picking</field>
  27. <field name="inherit_id" ref="stock.view_picking_form"/>
  28. <field name="arch" type="xml">
  29. <button name="do_enter_transfer_details" position="replace">
  30. <button name="entregar_producto" string="Transferir" groups="stock.group_stock_user" type="object" class="oe_highlight" states="draft,assigned,partially_available,confirmed"/>
  31. </button>
  32. <button name="force_assign" position="attributes">
  33. <attribute name="invisible">1</attribute>
  34. </button>
  35. <button name="action_assign" position="attributes">
  36. <attribute name="invisible">1</attribute>
  37. </button>
  38. </field>
  39. </record>
  40. </data>
  41. </openerp>