12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="import_cost_form">
- <field name="name">import_cost_form</field>
- <field name="model">import.cost</field>
- <field name="arch" type="xml">
- <form string="Import">
- <header>
- <div class="import_cost_button" style="position:absolute"></div>
- <field name="state" widget="statusbar" statusbar_visible="draft,approved" statusbar_colors='{"draft":"red","approved":"blue"}'/>
- </header>
- <sheet>
- <h1>
- <label string="Importación "/>
- <field name="name" class="oe_inline" readonly="1"/>
- </h1>
- <group>
- <field name="date"/>
- <field name="created_by" readonly="1"/>
- <field name="approved_by" readonly="1"/>
- </group>
- <group string="Facturas de compras"></group>
- <group>
- <field name="purchases" nolabel="1" attrs="{'readonly': [('state','=', 'approved')]}">
- <tree string="Detalles" editable="bottom" >
- <field name="purchase_id" domain="[('type', '=', 'in_invoice')]"/>
- <field name="purchase_subtotal"/>
- <field name="purchase_taxes"/>
- <field name="purchase_total"/>
- </tree>
- </field>
- </group>
- <group class="oe_subtotal_footer" colspan="2" style="float:right; margin-right:10px !important">
- <field name="purchases_subtotal" widget='monetary'/>
- <field name="purchases_taxes" widget='monetary'/>
- <div class="oe_subtotal_footer_separator oe_inline">
- <label for="purchases_total"/>
- </div>
- <field name="purchases_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary'/>
- </group>
- <group string="Facturas de gastos"></group>
- <group>
- <field name="expenses" nolabel="1" attrs="{'readonly': [('state','=', 'approved')]}">
- <tree string="Detalles" editable="bottom" >
- <field name="expense_id" domain="[('type', '=', 'in_invoice')]"/>
- <field name="expense_subtotal"/>
- <field name="expense_taxes"/>
- <field name="expense_total"/>
- </tree>
- </field>
- </group>
- <group class="oe_subtotal_footer" colspan="2" style="float:right; margin-right:10px !important">
- <field name="expenses_subtotal" widget='monetary' />
- <field name="expenses_taxes" widget='monetary' />
- <div class="oe_subtotal_footer_separator oe_inline">
- <label for="expenses_total"/>
- </div>
- <field name="expenses_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary'/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="import_cost_tree">
- <field name="name">import_cost_tree</field>
- <field name="model">import.cost</field>
- <field name="arch" type="xml">
- <tree string="Import Cost Tree" colors="grey:state=='draft';blue:state=='approved'">
- <field name="name" />
- <field name="date" />
- <field name="purchases_total" string="Total compra"/>
- <field name="expenses_total" string="Total gasto"/>
- <field name="factor" />
- <field name="state" />
- </tree>
- </field>
- </record>
- <record model="ir.actions.act_window" id="action_import_cost">
- <field name="name">Gastos de Importación</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">import.cost</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- </record>
- <menuitem name="Importación" id="import_main_menu" parent="expense_menu.expense_main_menu" sequence="20" />
- <menuitem name="Gastos de Importación" id="import_submenu_1" parent="import_main_menu" action="action_import_cost" />
- </data>
- </openerp>
|