123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <!-- from -->
- <record id="eiru_account_interest_from" model="ir.ui.view">
- <field name="name">eiru.account.interest.from</field>
- <field name="model">account.interest</field>
- <field name="arch" type="xml">
- <form string="Interés por mora" create="0" edit="0">
- <header>
- <field name="state" widget="statusbar"/>
- </header>
- <sheet>
- <h1>
- <field name='name'/>
- </h1>
- <group col="2" >
- <group>
- <field name="customer_id" string="Cliente" />
- <field name="reference" string="Factura" />
- <field name="currency_id" string="Moneda" />
- </group>
- <group>
- <field name="date"/>
- </group>
- </group>
- <notebook>
- <page string="Detalles">
- <div class="account-interes-invoice"></div>
- <field name="lines_ids" >
- <tree colors="blue:state == 'invoiced'; red:state == 'open'; red:state =='invoice_cancel'; red:state =='invoice_draft'; gray:state == 'discount'; black:state == 'paid'" string="Detalles de la deuda" editable="bottom" create="false" delete="false">
- <field name="date_maturity" string="Vencimiento"/>
- <!-- <field name="cuota_nro" string="Nro cuota"/> -->
- <field name="amount" string="Monto de la cuota"/>
- <field name="amount_residual" string="Saldo pendiente"/>
- <field name="expired_days" string="Días atrasados"/>
- <field name="amount_interest" string="interés calculado"/>
- <field name="amount_dicount" string="Descuento"/>
- <field name="reference" string="Factura"/>
- <field name="state" string="Estado"/>
- </tree>
- </field>
- </page>
- </notebook>
- <group>
- <field name="comment" string="Información adicional"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <!-- Tree -->
- <record id="eiru_account_interest_tree" model="ir.ui.view">
- <field name="name">eiru.account.interest.tree</field>
- <field name="model">account.interest</field>
- <field name="arch" type="xml">
- <tree colors="blue:state == 'lines_paid'; red:state == 'lines_open'; gray:state == 'paid'" create="0" edit="0">
- <field name="name" string="Nombre" />
- <field name="date" string="Fecha"/>
- <field name="customer_id" string="Cliente"/>
- <!-- <field name="cuota_nro" string="Nº Cuota"/> -->
- <field name="invoice_id" string="Nº Factura"/>
- <field name="currency_id" string="Moneda"/>
- <field name="state" string="Estado"/>
- </tree>
- </field>
- </record>
- <!-- Search -->
- <record id="eiru_account_interest_search" model="ir.ui.view">
- <field name="name">eiru.account.interest.search</field>
- <field name="model">account.interest</field>
- <field name="arch" type="xml">
- <search>
- <field name="customer_id" string="Cliente"/>
- <field name="invoice_id" string="Nº Factura"/>
- <group string="Agrupar por">
- <filter string="Cliente " context="{'group_by':'customer_id'}"/>
- <filter string="Moneda" context="{'group_by': 'currency_id'}"/>
- <filter string="Estado" context="{'group_by':'state'}"/>
- </group>
- </search>
- </field>
- </record>
- <!-- Actions -->
- <record id="eiru_account_interest_actions" model="ir.actions.act_window">
- <field name="name">Interés por mora</field>
- <field name="res_model">account.interest</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="target">current</field>
- </record>
- <!-- Menu -->
- <menuitem id="eiru_account_interest_menu" name="Interés moratorios" parent="account.menu_finance" sequence="2"/>
- <menuitem id="eiru_account_interest" name="Interés por mora" parent="eiru_account_interest_menu" action="eiru_account_interest_actions" sequence="1" />
- </data>
- </openerp>
|