eiru_construction_task.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- from -->
  5. <record id="eiru_construction_task_form" model="ir.ui.view">
  6. <field name="name">eiru.construction.task.form</field>
  7. <field name="model">construction.task</field>
  8. <field name="arch" type="xml">
  9. <form string="Tarea">
  10. <sheet>
  11. <h1>
  12. <field name="name" nolabel="1"/>
  13. </h1>
  14. <group col="2">
  15. <group>
  16. <field name='code' string="Codigo"/>
  17. <field name="active" string="Activo"/>
  18. </group>
  19. <group>
  20. <field name="ref" string="Referencia"/>
  21. </group>
  22. </group>
  23. <notebook>
  24. <page string="Actividades ">
  25. <field name="line_ids">
  26. <tree string="Lista de actividades">
  27. <field name="code" string="Codigo"/>
  28. <field name="name" string="Descripción"/>
  29. <field name="construction_uom" string="Unida de Medida"/>
  30. <field name="amount" string="Precio Unitario"/>
  31. </tree>
  32. </field>
  33. </page>
  34. </notebook>
  35. <group>
  36. <field name="comment" string="Información Adicional"/>
  37. </group>
  38. </sheet>
  39. </form>
  40. </field>
  41. </record>
  42. <!-- Tree -->
  43. <record id="eiru_construction_task_tree" model="ir.ui.view">
  44. <field name="name">eiru.construction.task.tree</field>
  45. <field name="model">construction.task</field>
  46. <field name="arch" type="xml">
  47. <tree>
  48. <field name='code' string="Codigo"/>
  49. <field name="name" string="Descripción"/>
  50. <field name="ref" string="Referencia"/>
  51. <field name="active" string="Activo"/>
  52. </tree>
  53. </field>
  54. </record>
  55. <!-- Actions -->
  56. <record id="eiru_construction_task_actions" model="ir.actions.act_window">
  57. <field name="name">Tarea</field>
  58. <field name="res_model">construction.task</field>
  59. <field name="view_type">form</field>
  60. <field name="view_mode">tree,form</field>
  61. <field name="target">current</field>
  62. </record>
  63. <!-- Menu -->
  64. <menuitem
  65. id="menu_eiru_construction_task"
  66. name="Tarea"
  67. parent="eiru_construction_menu_task"
  68. action="eiru_construction_task_actions"
  69. sequence="1"/>
  70. </data>
  71. </openerp>