mrp_production.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="mrp_production_machine_form_view" model="ir.ui.view">
  5. <field name="name">MRP con Máquina</field>
  6. <field name="model">mrp.production</field>
  7. <field name="inherit_id" ref="mrp.mrp_production_form_view" />
  8. <field name="arch" type="xml">
  9. <field name="date_planned" position="after">
  10. <field name="mrp_machine_id" string="Máquina"/>
  11. <field name="sale_id" string="Ref. Venta"/>
  12. <field name="sale_line_id" invisible="1"/>
  13. <field name="partner_id" string="Cliente"/>
  14. </field>
  15. <field name="origin" position="after">
  16. <field name="date_order" string="Fecha de Pedido"/>
  17. <field name="product_name" string="Producto a Fabricar"/>
  18. </field>
  19. </field>
  20. </record>
  21. <record id="mrp_production_machine_tree_view" model="ir.ui.view">
  22. <field name="name">MRP con Máquina</field>
  23. <field name="model">mrp.production</field>
  24. <field name="inherit_id" ref="mrp.mrp_production_tree_view"/>
  25. <field name="arch" type="xml">
  26. <field name="date_planned" position="after">
  27. <field name="mrp_machine_id" string="Máquina"/>
  28. <field name="sale_id" string="Ref. Venta"/>
  29. <field name="sale_line_id" invisible="1"/>
  30. <field name="partner_id" string="Cliente"/>
  31. </field>
  32. </field>
  33. </record>
  34. <record id="mrp_production_machine_info_search_view" model="ir.ui.view">
  35. <field name="name">MRP Production search with Machine</field>
  36. <field name="model">mrp.production</field>
  37. <field name="inherit_id" ref="mrp.view_mrp_production_filter" />
  38. <field name="arch" type="xml">
  39. <field name="product_id" position="after">
  40. <field name="partner_id" string="Cliente"/>
  41. <field name="sale_id" string="Ref. Venta"/>
  42. <field name="mrp_machine_id" />
  43. </field>
  44. <group position="inside">
  45. <filter string="Cliente" icon="terp-accessories-archiver"
  46. domain="[]" context="{'group_by':'partner_id'}" />
  47. <filter string="Ref. Venta" icon="terp-accessories-archiver"
  48. domain="[]" context="{'group_by':'sale_id'}" />
  49. <filter string="Máquina" icon="terp-accessories-archiver"
  50. domain="[]" context="{'group_by':'mrp_machine_id'}" />
  51. </group>
  52. </field>
  53. </record>
  54. </data>
  55. </openerp>