stock_warehouse_transfer.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="stock_warehouse_transfer_view_tree" model="ir.ui.view">
  5. <field name="name">stock.warehouse.transfer.view.tree</field>
  6. <field name="model">stock.warehouse.transfer</field>
  7. <field name="arch" type="xml">
  8. <tree string="Transfers">
  9. <field name="name"/>
  10. <field name="date"/>
  11. <field name="source_warehouse"/>
  12. <field name="dest_warehouse"/>
  13. <field name="pickings"/>
  14. <field name="state"/>
  15. </tree>
  16. </field>
  17. </record>
  18. <record id="stock_warehouse_transfer_view_form" model="ir.ui.view">
  19. <field name="name">stock.warehouse.transfer.view.form</field>
  20. <field name="model">stock.warehouse.transfer</field>
  21. <field name="arch" type="xml">
  22. <form string="Transfer">
  23. <header>
  24. <button name="action_create_picking" type="object" states="draft" class="oe_highlight" string="Crear Transferencia"/>
  25. <field name="state" widget="statusbar" translate="1"/>
  26. </header>
  27. <sheet>
  28. <h1>
  29. <field name="name" required="1" placeholder="Reference" attrs="{'readonly':[('state','!=','draft')]}"/>
  30. </h1>
  31. <group>
  32. <field name="date" required="1" attrs="{'readonly':[('state','!=','draft')]}"/>
  33. </group>
  34. <group col="4">
  35. <field name="source_warehouse" required="1" attrs="{'readonly':[('state','!=','draft')]}"/>
  36. <field name="dest_warehouse" required="1" attrs="{'readonly':[('state','!=','draft')]}"/>
  37. </group>
  38. <separator colspan="4" string="Transferencia" attrs="{'invisible':[('state','in','draft')]}"/>
  39. <field colspan="4" name="pickings" readonly="1" nolabel="1" attrs="{'readonly':[('state','!=','draft')],'invisible':[('state','=','draft')]}"/>
  40. <separator colspan="4" string="Productos"/>
  41. <field colspan="4" name="lines" nolabel="1" attrs="{'readonly':[('state','!=','draft')]}">
  42. <tree editable="bottom">
  43. <field name="product_id" domain="[('type','!=','service')]" required="1" options="{'no_create':True,'no_open':True}"/>
  44. <field name="factory_reference" readonly="1"/>
  45. <field name="product_qty" required="1" sum="qty"/>
  46. <field name="product_uom_id" required="1" invisible="1"/>
  47. <field name="source_location" invisible="1"/>
  48. <field name="dest_location" invisible="1"/>
  49. <field name="note" invisible="1"/>
  50. </tree>
  51. </field>
  52. </sheet>
  53. </form>
  54. </field>
  55. </record>
  56. <record id="stock_warehouse_transfer_action" model="ir.actions.act_window">
  57. <field name="name">Transferir Productos</field>
  58. <field name="res_model">stock.warehouse.transfer</field>
  59. <field name="type">ir.actions.act_window</field>
  60. <field name="view_type">form</field>
  61. <field name="view_mode">tree,form</field>
  62. </record>
  63. <menuitem action="stock_warehouse_transfer_action"
  64. id="stock_warehouse_transfer_menu"
  65. parent="stock.menu_stock_warehouse_mgmt"
  66. sequence="50"/>
  67. </data>
  68. </openerp>