odoo/addons/account_followup/account_followup_customers.xml

219 lines
9.4 KiB
XML
Raw Normal View History

<openerp>
<data>
<!-- followup of customers views
-->
<!-- Was specific view, not used anymore -->
<record id="customer_followup_formgone" model="ir.ui.view">
<field name="name">eee</field>
<field name="model">res.partner</field>
<field name="type">form</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<form string="Customer FollowUp form" version="7.0">
<group>
<field name="name"/>
<field name="phone" />
<!--<field name="sales" readonly="True"/>-->
</group>
<separator string="Detail of accounts" />
<group>
<field name="accountmoveline_ids" nolabel="1" > <!--domain="[('reconcile_id', '=', False)]" not necessary-->
<tree string="Account Move line" editable="bottom">
<field name="date" readonly="True"/>
<!--<field name="move_id" readonly="True"/>-->
<field name="ref" readonly="True"/>
<field name="debit" readonly="True"/>
<field name="credit" readonly="True"/>
<field name="followup_date" readonly="True"/>
<field name="followup_line_id" readonly="True"/>
<field name="blocked" string="Litigation"/>
<field name="payment_commitment"/>
<field name="payment_date"/>
<!--<field name="reconcile_id" invisible="True"/>-->
<field name="reconcile_partial_id" readonly="True"/>
<field name="invoice"/>
</tree>
</field>
</group>
<newline/>
<group>
<separator string="Actions to be taken"/>
<newline/>
<group>
<field name="payment_next_action" help="Describes agreement with the client"/>
<button name="action_done" type="object" string="Follow-up Action Done" class="oe_highlight" help="This button will clear the action and the action date. "/>
</group>
<group>
<field name="payment_responsible_id" help="The user who takes responsibility to follow it up. "/>
<field name="payment_next_action_date"/>
</group>
</group>
<separator string="Payment Followup Remarks"/>
<newline/>
<group>
<field name="payment_note"/>
<!--<field name="payment_followup_level_id"/>-->
<field name="latest_followup_level_id"/>
<field name="latest_followup_date"/>
<field name="next_followup_level_id"/>
</group>
</form>
</field>
</record>
<record id="customer_followup_tree" model="ir.ui.view">
<field name="name">ddd</field>
<field name="model">res.partner</field>
<!--<field name="type">tree</field>-->
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<tree string="Customer Followup">
<field name="name"/>
<!--<field name="latest_followup_level_id"/>
<field name="latest_followup_date"/>-->
<field name="payment_next_action_date"/>
<field name="payment_next_action"/>
<!--<field name="payment_note"/>
<field name="phone"/>-->
<field name="payment_amount_overdue"/>
<field name="payment_responsible_id"/>
<!--<field name="email"/>-->
<field name="next_followup_level_id"/>
<!-- <field name="latest_followup_date"/>-->
</tree>
</field>
</record>
<record id="customer_followup_search_view" model="ir.ui.view">
<field name="name">Search</field>
<field name="model">res.partner</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search view">
<field name="name"/>
<field name="payment_next_action"/>
<!--<filter string="Actions to be taken with overdue amount" domain="['&amp;', ('payment_amount_outstanding', '>', 0.0), ('payment_next_action_date', '&lt;=', time.strftime('%%Y-%%m-%%d'))]"/>
<separator/>-->
<filter string="Overdue amount" domain="[('payment_amount_overdue', '>', 0.0)]"/>
<separator/>
<filter string="Action to be taken now" domain="[('payment_next_action_date', '&lt;=', time.strftime('%%Y-%%m-%%d'))]"/>
<separator/>
<filter string="Action to be taken" domain="[('payment_next_action', '!=', '')]"/>
<filter string="Follow-up sent" domain="[('latest_followup_level_id', '!=', False)]"/>
<separator/>
<filter string="Without responsible" domain="[('payment_responsible_id', '=', False)]"/>
<filter string="I am responsible" domain="[('payment_responsible_id','=', uid)]"/>
<group expand="1" string="Group by">
<filter string="Responsible" context="{'group_by':'payment_responsible_id'}"/>
</group>
</search>
</field>
</record>
<record id="action_customer_followup" model="ir.actions.act_window">
<field name="name">Customer Follow Up</field>
<field name="view_id" ref="customer_followup_tree"/>
<field name="res_model">res.partner</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[]</field> <!--('customer', '=', True), ('latest_followup_date','!=', False)-->
<field name="search_view_id" ref="customer_followup_search_view"/>
</record>
<!--Inherited view -->
<record id="view_partner_inherit_followup_form" model="ir.ui.view">
<field name="name">res.partner.followup.form.inherit</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="model">res.partner</field>
<field name="groups_id" eval="[(4, ref('account.group_account_manager'))]"/><!-- or user? -->
<field name="arch" type="xml" eval="[(4, ref('account.group_account_manager'))]">
<div name="buttons" position="inside">
<button name="do_button_print" type="object" string="Print Overdue Payments Report" help="Print overdue payments report independent of follow-up line" attrs="{'invisible':[('payment_amount_overdue', '&lt;=', 0.0)]}"/>
<button name="do_button_mail" type="object" string="Send Overdue Email" help="If not specified by the latest follow-up level, it will send from the default follow-up of overdue invoices template" attrs="{'invisible':[('payment_amount_overdue', '&lt;=', 0.0)]}"/>
</div>
<page string="Accounting" position="before" version="7.0">
<page string="Payments Follow-up" position="inside">
<group>
<group>
<field name="payment_amount_overdue"/>
</group>
<group>
<label for="payment_next_action"/>
<div>
<field name="payment_next_action_date" nolabel="1"/> <label string="-" attrs="{'invisible': ['|', ('payment_next_action_date', '=', False), ('payment_next_action', '=', False)]}"/>
<field name="payment_next_action" class="oe_inline" nolabel="1" placeholder="e.g. Give a phonecall, Check if he paid, ..."/>
</div>
</group>
<group>
<field name="latest_followup_level_id"/>
<field name="latest_followup_date"/>
<field name="next_followup_level_id"/>
<!-- test field
<field name="latest_fol"/>
<field name="latest_num"/>-->
</group>
<group>
<!--<field name="payment_next_action_date" help="This is when further follow-up is needed. The date will have been set to the current date when processing the follow-ups asks for a phone call"/>-->
<field name="payment_responsible_id" help="The user who takes responsibility to follow it up. "/>
<button name="action_done" type="object" string="Follow-up Action Done" help="This button will clear the action and the action date. "/>
</group>
<group>
<field name="payment_note"/>
</group>
</group>
<group>
<field name="accountmoveline_ids" nolabel="1" >
<tree string="Account Move line" editable="bottom" colors="red:date_maturity and date_maturity&lt;current_date or date&lt;current_date">
<field name="date" readonly="True"/>
<field name="move_id" readonly="True"/>
<field name="result" readonly="True"/>
<field name="blocked" string="Litigation"/>
<field name="date_maturity" readonly="True"/>
<field name="reconcile_partial_id" readonly="True"/>
</tree>
</field>
</group>
</page>
</page>
</field>
</record>
<!-- <record id="action_view_customer_followup_form" model="ir.actions.act_window.view">
<field name="sequence" eval="2"/>
<field name="view_mode">form</field>
<field name="view_id" ref="customer_followup_form"/>
<field name="act_window_id" ref="action_customer_followup"/>
</record>-->
<record id="action_view_customer_followup_tree" model="ir.actions.act_window.view">
<field name="sequence" eval="1"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="customer_followup_tree"/>
<field name="act_window_id" ref="action_customer_followup"/>
</record>
<!-- Menus about followup of customers -->
<menuitem id="account_followup_s" action="action_customer_followup" parent="account.menu_finance_periodical_processing_billing" name="Customer Follow-up"/>
</data>
</openerp>