eiru_construction_move.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- from -->
  5. <record id="eiru_construction_move_form" model="ir.ui.view">
  6. <field name="name">eiru_construction_move.form</field>
  7. <field name="model">construction.move</field>
  8. <field name="arch" type="xml">
  9. <form>
  10. <header>
  11. <field name="state" widget="statusbar"/>
  12. </header>
  13. <sheet>
  14. <h1>
  15. <field name="name" class="oe_inline" readonly="1"/>
  16. </h1>
  17. <group col="2">
  18. <group>
  19. <field name="partner_id" string="Socio" readonly="1"/>
  20. <field name="order_id" string="Orden de servicio" readonly="1"/>
  21. <field name="currency_id" string="Moneda" readonly="1"/>
  22. </group>
  23. <group>
  24. <field name="date" string="Fecha"/>
  25. <field name="work_id" string="Obra" readonly="1"/>
  26. <!-- <field name="type" string="Tipo"/> -->
  27. <field name="invoice_id" string="Factura" readonly="1"/>
  28. </group>
  29. </group>
  30. <group col="2" string='Estado Financiero'>
  31. <group string="Finanzas">
  32. <field name="amount_total" string="Importe Total" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
  33. <field name="amount_paid" string="Importe Pagado" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
  34. <field name="residual" string="Residual" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
  35. </group>
  36. <group string="Gastos">
  37. <field name="amount_expenses" string="Total Gastos" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
  38. <field name="available_expenses" string="Gastos Disponible" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
  39. </group>
  40. </group>
  41. <notebook>
  42. <page string="Tareas">
  43. <field name="move_lines_ids" >
  44. <tree colors="red:type=='task';gray:type=='activity'" edit="false" create="false" delete="false" string="Lista de tareas y actividades">
  45. <field name="code" string="Codigo"/>
  46. <field name="task_name" string="Descripciónes"/>
  47. <field name="amount_total" string="Total"/>
  48. <field name="amount_expenses" string="Gastos"/>
  49. <field name="residual" string="Residual"/>
  50. <field name="type" invisible="1"/>
  51. <field name="uom_id" string="UN" invisible="1"/>
  52. <field name="task_id" invisible="1"/>
  53. </tree>
  54. </field>
  55. </page>
  56. </notebook>
  57. <group>
  58. <field name="comment" string="Información Adicional"/>
  59. </group>
  60. </sheet>
  61. </form>
  62. </field>
  63. </record>
  64. <!-- Tree -->
  65. <record id="eiru_construction_move_tree" model="ir.ui.view">
  66. <field name="name">eiru_construction_move.tree</field>
  67. <field name="model">construction.move</field>
  68. <field name="arch" type="xml">
  69. <tree>
  70. <field name="name" string="Descripción"/>
  71. <field name="order_id" string="Orden de servicio"/>
  72. <field name="work_id" string="Obra" />
  73. <field name="amount_total" string="Importe Total" />
  74. <field name="amount_paid" string="Importe Pagado"/>
  75. <field name="residual" string="Residual"/>
  76. <field name="type" string="Tipo"/>
  77. </tree>
  78. </field>
  79. </record>
  80. <!-- from -->
  81. <record id="eiru_construction_move_line_form" model="ir.ui.view">
  82. <field name="name">eiru_construction_move_line.form</field>
  83. <field name="model">construction.move.line</field>
  84. <field name="arch" type="xml">
  85. <form create='0' edit='0' string='Detalles de las actividades'>
  86. <sheet>
  87. <h1>
  88. <field name="code" class="oe_inline" readonly="1" style="width:6em"/> -
  89. <field name="task_name" class="oe_inline" readonly="1"/>
  90. </h1>
  91. <group col="2">
  92. <group>
  93. <field name="task_id" string="Tarea" readonly="1"/>
  94. <field name="uom_id" string="Unidad de medida" readonly="1"/>
  95. </group>
  96. <group>
  97. <field name="task_line_id" string="Actividad" readonly="1"/>
  98. <field name="move_id" string="Origin" readonly="1"/>
  99. </group>
  100. </group>
  101. <group string="Finanzas">
  102. <field name="amount_total" string="Importe Total" widget='monetary' readonly="1"/>
  103. <field name="amount_expenses" string="Gastos" widget='monetary' readonly="1"/>
  104. <field name="residual" string="Residual" widget='monetary' readonly="1"/>
  105. </group>
  106. <notebook>
  107. <page string="Gastos">
  108. <field name="expenses_ids" >
  109. <tree edit="false" create="false" delete="false" string="Lista de Materiales">
  110. <field name="invoice_line_id" string="Producto"/>
  111. <field name="quantity" string="Cantidad"/>
  112. <field name="price_unit" string="Prtecio Unitario"/>
  113. <field name="amount_total" string="Total"/>
  114. <field name="invoice_id" string="Factura"/>
  115. </tree>
  116. </field>
  117. </page>
  118. </notebook>
  119. </sheet>
  120. </form>
  121. </field>
  122. </record>
  123. <!-- Actions -->
  124. <record id="eiru_construction_move_actions" model="ir.actions.act_window">
  125. <field name="name">Clientes</field>
  126. <field name="res_model">construction.move</field>
  127. <field name="view_type">form</field>
  128. <field name="view_mode">tree,form</field>
  129. <field name="target">current</field>
  130. <field name="context">{'type':'order'}</field>
  131. <field name="domain">[('type', '=', 'order')]</field>
  132. </record>
  133. <record id="eiru_construction_move_actions_contractor" model="ir.actions.act_window">
  134. <field name="name">Contratista</field>
  135. <field name="res_model">construction.move</field>
  136. <field name="view_type">form</field>
  137. <field name="view_mode">tree,form</field>
  138. <field name="target">current</field>
  139. <field name="context">{'type':'contractor'}</field>
  140. <field name="domain">[('type', '=', 'contractor')]</field>
  141. </record>
  142. <!-- Menu -->
  143. <menuitem
  144. id="menu_eiru_construction_move"
  145. name="Clientes"
  146. parent="eiru_construction_menu_move"
  147. action="eiru_construction_move_actions"
  148. sequence="1"/>
  149. <menuitem
  150. id="menu_eiru_construction_move_contractor"
  151. name="Contratista"
  152. parent="eiru_construction_menu_move"
  153. action="eiru_construction_move_actions_contractor"
  154. sequence="2"/>
  155. </data>
  156. </openerp>