stock_move_views.xml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.actions.act_window" id="action_mrp_production_moves">
  4. <field name="name">Inventory Moves</field>
  5. <field name="type">ir.actions.act_window</field>
  6. <field name="res_model">stock.move.line</field>
  7. <field name="view_mode">tree,form</field>
  8. <field name="domain">['|', ('move_id.raw_material_production_id', '=', active_id), ('move_id.production_id', '=', active_id)]</field>
  9. </record>
  10. <record id="view_stock_move_operations_raw" model="ir.ui.view">
  11. <field name="name">stock.move.operations.raw.form</field>
  12. <field name="model">stock.move</field>
  13. <field name="priority">1</field>
  14. <field name="mode">primary</field>
  15. <field name="inherit_id" ref="stock.view_stock_move_operations" />
  16. <field name="arch" type="xml">
  17. <xpath expr="//label[@for='product_uom_qty']" position="attributes">
  18. <attribute name="string">Total To Consume</attribute>
  19. </xpath>
  20. <xpath expr="//label[@for='quantity_done']" position="attributes">
  21. <attribute name="string">Consumed</attribute>
  22. </xpath>
  23. </field>
  24. </record>
  25. <record id="view_stock_move_operations_finished" model="ir.ui.view">
  26. <field name="name">stock.move.operations.finished.form</field>
  27. <field name="model">stock.move</field>
  28. <field name="priority">1</field>
  29. <field name="mode">primary</field>
  30. <field name="inherit_id" ref="stock.view_stock_move_operations" />
  31. <field name="arch" type="xml">
  32. <xpath expr="//label[@for='product_uom_qty']" position="attributes">
  33. <attribute name="string">To Produce</attribute>
  34. </xpath>
  35. <xpath expr="//label[@for='quantity_done']" position="attributes">
  36. <attribute name="string">Produced</attribute>
  37. </xpath>
  38. </field>
  39. </record>
  40. <record id="view_stock_move_line_operation_tree_finished" model="ir.ui.view">
  41. <field name="name">stock.move.line.operation.tree.finished</field>
  42. <field name="model">stock.move.line</field>
  43. <field name="inherit_id" ref="stock.view_stock_move_line_operation_tree" />
  44. <field name="arch" type="xml">
  45. <xpath expr="//field[@name='lot_id']" position="attributes">
  46. <attribute name="context">{
  47. 'active_mo_id': context.get('active_mo_id'),
  48. 'active_picking_id': picking_id,
  49. 'default_company_id': parent.company_id,
  50. 'default_product_id': parent.product_id,
  51. }
  52. </attribute>
  53. </xpath>
  54. </field>
  55. </record>
  56. <record id="stock_move_line_view_search" model="ir.ui.view">
  57. <field name="name">stock.move.line.search</field>
  58. <field name="model">stock.move.line</field>
  59. <field name="inherit_id" ref="stock.stock_move_line_view_search" />
  60. <field name="arch" type="xml">
  61. <filter name="manufacturing" position="attributes">
  62. <attribute name="invisible">0</attribute>
  63. <attribute name="domain">[('move_id.production_id', '!=', False)]</attribute>
  64. </filter>
  65. </field>
  66. </record>
  67. <menuitem id="menu_mrp_traceability"
  68. name="Lots/Serial Numbers"
  69. parent="menu_mrp_bom"
  70. action="stock.action_production_lot_form"
  71. groups="stock.group_production_lot"
  72. sequence="15"/>
  73. <menuitem id="menu_mrp_scrap"
  74. name="Scrap"
  75. parent="menu_mrp_manufacturing"
  76. action="stock.action_stock_scrap"
  77. sequence="25"/>
  78. <menuitem id="menu_procurement_compute_mrp"
  79. action="stock.action_procurement_compute"
  80. parent="mrp_planning_menu_root"
  81. groups="base.group_no_one"
  82. sequence="135"/>
  83. </odoo>