123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <record id="account_statement_page" model="ir.ui.view">
- <field name="name">account_statement_page</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="base.view_partner_form"/>
- <field name="arch" type="xml">
- <notebook>
- <page name="account_statement" string="Estado de Cuentas">
- <notebook>
- <page name="payments" string="Cobros Realizados" attrs="{'invisible':[('customer', '=', False)]}">
- <group style="position:absolute; padding-top:10px;width: 500px;">
- <field name="total_debt_paid" string="Total cobros realizados" context="{'default_id': active_id}"/>
- </group>
- <div class="oe_right oe_button_box">
- <button id="btn_debt_paid" style="width:100% !important" class="oe_button oe_form_button" string="Imprimir Cobros Realizados" custom='click_debt_paid'/>
- </div>
- <field name="debt_paid_ids" readonly="1">
- <tree string="Account Move line" create="false" delete="false">
- <field name="journal_id"/>
- <field name="ref"/>
- <field name="move_id"/>
- <field name="date_created"/>
- <field name="credit" string="Monto"/>
- </tree>
- </field>
- </page>
- <page name="receive" string="Pendientes de Cobro" attrs="{'invisible':[('customer', '=', False)]}">
- <group style="position:absolute; padding-top:10px;width: 500px;">
- <field name="credit" string="Total cobros pendientes"/>
- </group>
- <div class="oe_right oe_button_box">
- <button id="btn_debt_pending" style="width:100% !important" class="oe_button oe_form_button" string="Imprimir Cobros Pendientes" custom='click_debt_pending'/>
- </div>
- <field name="debt_pending_ids" readonly="1">
- <tree string="Account Move line" editable="bottom" create="false" delete="false" colors="red:(not date_maturity or date_maturity<=current_date) and debit>0">
- <field name="journal_id"/>
- <field name="ref"/>
- <field name="move_id"/>
- <field name="date_maturity"/>
- <field name="debit" string="Monto"/>
- </tree>
- </field>
- </page>
- <page name="payments1" string="Pagos Realizados" attrs="{'invisible':[('supplier', '=', False)]}">
- <group style="position:absolute; padding-top:10px;width: 500px;">
- <field name="total_payment" string="Total pagos realizados" context="{'default_id': active_id}"/>
- </group>
- <div class="oe_right oe_button_box">
- <button id="btn_payment_done" style="width:100% !important" class="oe_button oe_form_button" string="Imprimir Pagos Realizados" custom='click_payment_done'/>
- </div>
- <field name="payment_done_ids" readonly="1">
- <tree string="Account Move line" create="false" delete="false">
- <field name="journal_id"/>
- <field name="ref"/>
- <field name="move_id"/>
- <field name="date_created"/>
- <field name="credit" string="Monto"/>
- </tree>
- </field>
- </page>
- <page name="payments2" string="Pendientes de Pago" attrs="{'invisible':[('supplier', '=', False)]}">
- <group style="position:absolute; padding-top:10px;width: 500px;">
- <field name="debit" string="Total pagos pendientes"/>
- </group>
- <div class="oe_right oe_button_box">
- <button id="btn_payment_pending" style="width:100% !important" class="oe_button oe_form_button" string="Imprimir Pagos Pendientes" custom='click_payment_pending'/>
- </div>
- <field name="payment_pending_ids" readonly="1">
- <tree string="Account Move line" editable="bottom" create="false" delete="false" colors="red:(not date_maturity or date_maturity<=current_date) and credit>0">
- <field name="journal_id"/>
- <field name="ref"/>
- <field name="move_id"/>
- <field name="date_maturity"/>
- <field name="credit" string="Monto"/>
- </tree>
- </field>
- </page>
- </notebook>
- </page>
- </notebook>
- </field>
- </record>
- <record id="account_statement_page3" model="ir.ui.view">
- <field name="name">account_statement_page3</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="account.view_partner_property_form"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='debit']" position="attributes">
- <attribute name="invisible">True</attribute>
- </xpath>
- <xpath expr="//field[@name='credit']" position="attributes">
- <attribute name="invisible">True</attribute>
- </xpath>
- </field>
- </record>
- <record id="account_statement_page2" model="ir.ui.view">
- <field name="name">account_statement_page2</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="account_followup.view_partner_inherit_followup_form"/>
- <field name="arch" type="xml">
- <xpath expr="//page[@name='followup_tab']" position="attributes">
- <attribute name="invisible">True</attribute>
- </xpath>
- </field>
- </record>
- </data>
- </openerp>
|