123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <!-- from -->
- <record id="eiru_construction_move_form" model="ir.ui.view">
- <field name="name">eiru_construction_move.form</field>
- <field name="model">construction.move</field>
- <field name="arch" type="xml">
- <form>
- <header>
- <field name="state" widget="statusbar"/>
- </header>
- <sheet>
- <h1>
- <field name="name" class="oe_inline" readonly="1"/>
- </h1>
- <group col="2">
- <group>
- <field name="partner_id" string="Socio" readonly="1"/>
- <field name="order_id" string="Orden de servicio" readonly="1"/>
- <field name="currency_id" string="Moneda" readonly="1"/>
- </group>
- <group>
- <field name="date" string="Fecha"/>
- <field name="work_id" string="Obra" readonly="1"/>
- <!-- <field name="type" string="Tipo"/> -->
- <field name="invoice_id" string="Factura" readonly="1"/>
- </group>
- </group>
- <group col="2" string='Estado Financiero'>
- <group string="Finanzas">
- <field name="amount_total" string="Importe Total" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
- <field name="amount_paid" string="Importe Pagado" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
- <field name="residual" string="Residual" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
- </group>
- <group string="Gastos">
- <field name="amount_expenses" string="Total Gastos" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
- <field name="available_expenses" string="Gastos Disponible" widget='monetary' options="{'currency_field':'currency_id'}" readonly="1"/>
- </group>
- </group>
- <notebook>
- <page string="Tareas">
- <field name="move_lines_ids" >
- <tree colors="red:type=='task';gray:type=='activity'" edit="false" create="false" delete="false" string="Lista de tareas y actividades">
- <field name="code" string="Codigo"/>
- <field name="task_name" string="Descripciónes"/>
- <field name="amount_total" string="Total"/>
- <field name="amount_expenses" string="Gastos"/>
- <field name="residual" string="Residual"/>
- <field name="type" invisible="1"/>
- <field name="uom_id" string="UN" invisible="1"/>
- <field name="task_id" invisible="1"/>
- </tree>
- </field>
- </page>
- </notebook>
- <group>
- <field name="comment" string="Información Adicional"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <!-- Tree -->
- <record id="eiru_construction_move_tree" model="ir.ui.view">
- <field name="name">eiru_construction_move.tree</field>
- <field name="model">construction.move</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name" string="Descripción"/>
- <field name="order_id" string="Orden de servicio"/>
- <field name="work_id" string="Obra" />
- <field name="amount_total" string="Importe Total" />
- <field name="amount_paid" string="Importe Pagado"/>
- <field name="residual" string="Residual"/>
- <field name="type" string="Tipo"/>
- </tree>
- </field>
- </record>
- <!-- from -->
- <record id="eiru_construction_move_line_form" model="ir.ui.view">
- <field name="name">eiru_construction_move_line.form</field>
- <field name="model">construction.move.line</field>
- <field name="arch" type="xml">
- <form create='0' edit='0' string='Detalles de las actividades'>
- <sheet>
- <h1>
- <field name="code" class="oe_inline" readonly="1" style="width:6em"/> -
- <field name="task_name" class="oe_inline" readonly="1"/>
- </h1>
- <group col="2">
- <group>
- <field name="task_id" string="Tarea" readonly="1"/>
- <field name="uom_id" string="Unidad de medida" readonly="1"/>
- </group>
- <group>
- <field name="task_line_id" string="Actividad" readonly="1"/>
- <field name="move_id" string="Origin" readonly="1"/>
- </group>
- </group>
- <group string="Finanzas">
- <field name="amount_total" string="Importe Total" widget='monetary' readonly="1"/>
- <field name="amount_expenses" string="Gastos" widget='monetary' readonly="1"/>
- <field name="residual" string="Residual" widget='monetary' readonly="1"/>
- </group>
- <notebook>
- <page string="Gastos">
- <field name="expenses_ids" >
- <tree edit="false" create="false" delete="false" string="Lista de Materiales">
- <field name="invoice_line_id" string="Producto"/>
- <field name="quantity" string="Cantidad"/>
- <field name="price_unit" string="Prtecio Unitario"/>
- <field name="amount_total" string="Total"/>
- <field name="invoice_id" string="Factura"/>
- </tree>
- </field>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <!-- Actions -->
- <record id="eiru_construction_move_actions" model="ir.actions.act_window">
- <field name="name">Clientes</field>
- <field name="res_model">construction.move</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="target">current</field>
- <field name="context">{'type':'order'}</field>
- <field name="domain">[('type', '=', 'order')]</field>
- </record>
- <record id="eiru_construction_move_actions_contractor" model="ir.actions.act_window">
- <field name="name">Contratista</field>
- <field name="res_model">construction.move</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="target">current</field>
- <field name="context">{'type':'contractor'}</field>
- <field name="domain">[('type', '=', 'contractor')]</field>
- </record>
- <!-- Menu -->
- <menuitem
- id="menu_eiru_construction_move"
- name="Clientes"
- parent="eiru_construction_menu_move"
- action="eiru_construction_move_actions"
- sequence="1"/>
- <menuitem
- id="menu_eiru_construction_move_contractor"
- name="Contratista"
- parent="eiru_construction_menu_move"
- action="eiru_construction_move_actions_contractor"
- sequence="2"/>
- </data>
- </openerp>
|