<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <record id="view_account_followup_followup_line_form" model="ir.ui.view">
            <field name="name">account_followup.followup.line.form</field>
            <field name="model">account_followup.followup.line</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Follow-Up lines">
                    <field name="sequence" select="1"/>
                    <field name="name" select="1"/>
                    <field name="delay" select="1"/>
                    <field name="start" select="1"/>
                    <newline/>
                    <field colspan="4" name="description" select="1"/>
                </form>
            </field>
        </record>
        
        <record id="view_account_followup_followup_form" model="ir.ui.view">
            <field name="name">account_followup.followup.form</field>
            <field name="model">account_followup.followup</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Follow-Up">
                    <field name="name" select="1"/>
                    <separator colspan="4" string="Description"/>
                    <field colspan="4" name="description" nolabel="1"/>
                    <separator colspan="4" string="Lines"/>
                    <field colspan="4" name="followup_line" nolabel="1" widget="one2many_list"/>
                </form>
            </field>
        </record>
        <record id="action_account_followup_definition_form" model="ir.actions.act_window">
            <field name="name">Follow-Ups</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account_followup.followup</field>
            <field name="view_type">form</field>
        </record>
        <menuitem action="action_account_followup_definition_form" id="account_followup_menu" parent="account.next_id_33"/>
        
        <report auto="False" id="account_followup_followup_report" menu="False" model="account_followup.followup" name="account_followup.followup.print" rml="account_followup/report/rappel.rml" string="Followup Report"/>
        
        <record id="action_account_followup_all_wizard" model="ir.actions.wizard">
            <field name="name">Send followups</field>
            <field name="wiz_name">account_followup.followup.print.all</field>
        </record>
        <menuitem action="action_account_followup_all_wizard" id="account_followup_wizard_menu" parent="account.menu_finance_periodical_processing" type="wizard"/>
        
        
        <record id="account_move_line_partner_tree" model="ir.ui.view">
            <field name="name">account.move.line.partner.tree</field>
            <field name="model">account.move.line</field>
            <field name="type">tree</field>
            <field eval="32" name="priority"/>
            <field name="arch" type="xml">
                <tree editable="bottom" string="Partner entries">
                    <field name="date"/>
                    <field name="move_id"/>
                    <field name="ref"/>
                    <field name="name"/>
                    <field name="partner_id"/>
                    <field name="account_id"/>
                    <field name="followup_line_id"/>
                    <field name="followup_date"/>
                    <field name="debit" sum="Total debit"/>
                    <field name="credit" sum="Total credit"/>
                    <field name="state"/>
                    <field name="date_maturity"/>
                </tree>
            </field>
        </record>
        
        <record id="view_move_line_form" model="ir.ui.view">
            <field name="name">account.move.line.form.followup</field>
            <field name="model">account.move.line</field>
            <field name="inherit_id" ref="account.view_move_line_form"/>
            <field name="arch" type="xml">
                <field name="date_created" position="after">
                    <field name="followup_date"/>
                    <field name="followup_line_id"/>
                </field>
            </field>
        </record>
        
        <record id="view_move_line_tree" model="ir.ui.view">
            <field name="name">account.move.line.tree.followup</field>
            <field name="model">account.move.line</field>
            <field name="inherit_id" ref="account.view_move_line_tree"/>
            <field name="arch" type="xml">
                <field name="state" position="before">
                    <field name="followup_date"/>
                    <field name="followup_line_id"/>
                </field>
            </field>
        </record>
        
        
        <act_window domain="[('partner_id', '=', active_id),('reconcile_id','=',False),('account_id.reconcile', '=', True)]" id="account.act_account_partner_account_move_unreconciled" name="Receivables &amp; Payables" res_model="account.move.line" view="account_move_line_partner_tree"/>
        
        <act_window domain="[('reconcile_id', '=', False),('account_id.type','=','receivable')]" id="act_account_partner_account_move_all" name="All receivable entries" res_model="account.move.line" src_model="" view="account_move_line_partner_tree"/>
        
        <menuitem action="act_account_partner_account_move_all" id="menu_account_move_open_unreconcile" parent="account_followup.account_followup_wizard_menu"/>
        
        <act_window domain="[('reconcile_id', '=', False), ('account_id.type','=','payable')]" id="act_account_partner_account_move_payable_all" name="All payable entries" res_model="account.move.line" src_model="" view="account_move_line_partner_tree"/>
        
        <menuitem action="act_account_partner_account_move_payable_all" id="menu_account_move_open_unreconcile_payable" parent="account_followup.account_followup_wizard_menu"/>
        
        
    </data>
</terp>