2012-10-19 17:29:57 +00:00
<openerp >
<data >
<!-- followup of customers views
-->
2012-11-07 16:51:30 +00:00
<!-- Was specific view, not used anymore -->
2012-10-19 17:29:57 +00:00
2012-11-06 17:15:22 +00:00
<record id= "customer_followup_formgone" model= "ir.ui.view" >
2012-10-19 17:29:57 +00:00
<field name= "name" > eee</field>
<field name= "model" > res.partner</field>
<field name= "type" > form</field>
2012-10-22 08:59:42 +00:00
<field name= "priority" eval= "20" />
2012-10-19 17:29:57 +00:00
<field name= "arch" type= "xml" >
2012-10-31 11:29:07 +00:00
<form string= "Customer FollowUp form" version= "7.0" >
<group >
2012-10-22 08:59:42 +00:00
<field name= "name" />
2012-10-23 12:23:24 +00:00
<field name= "phone" />
2012-10-31 11:29:07 +00:00
<!-- <field name="sales" readonly="True"/> -->
2012-10-22 08:59:42 +00:00
</group>
2012-10-31 11:29:07 +00:00
<separator string= "Detail of accounts" />
<group >
<field name= "accountmoveline_ids" nolabel= "1" > <!-- domain="[('reconcile_id', '=', False)]" not necessary -->
2012-10-23 12:23:24 +00:00
<tree string= "Account Move line" editable= "bottom" >
<field name= "date" readonly= "True" />
2012-11-07 16:51:30 +00:00
<!-- <field name="move_id" readonly="True"/> -->
2012-10-23 12:23:24 +00:00
<field name= "ref" readonly= "True" />
2012-10-24 15:37:34 +00:00
<field name= "debit" readonly= "True" />
2012-10-23 12:23:24 +00:00
<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" />
2012-10-31 11:29:07 +00:00
<!-- <field name="reconcile_id" invisible="True"/> -->
2012-10-24 15:37:34 +00:00
<field name= "reconcile_partial_id" readonly= "True" />
<field name= "invoice" />
2012-10-23 12:23:24 +00:00
</tree>
</field>
2012-10-31 11:29:07 +00:00
</group>
<newline />
<group >
<separator string= "Actions to be taken" />
2012-10-23 12:23:24 +00:00
<newline />
2012-10-31 11:29:07 +00:00
<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. " />
2012-11-07 16:51:30 +00:00
<field name= "payment_next_action_date" />
2012-10-31 11:29:07 +00:00
</group>
</group>
<separator string= "Payment Followup Remarks" />
<newline />
<group >
2012-10-22 08:59:42 +00:00
<field name= "payment_note" />
2012-10-25 08:08:22 +00:00
<!-- <field name="payment_followup_level_id"/> -->
2012-11-12 17:38:57 +00:00
<field name= "latest_followup_level_id" />
2012-10-22 08:59:42 +00:00
<field name= "latest_followup_date" />
2012-10-24 15:37:34 +00:00
<field name= "next_followup_level_id" />
2012-10-22 08:59:42 +00:00
</group>
2012-10-19 17:29:57 +00:00
</form>
</field>
</record>
<record id= "customer_followup_tree" model= "ir.ui.view" >
<field name= "name" > ddd</field>
<field name= "model" > res.partner</field>
2012-10-24 15:37:34 +00:00
<!-- <field name="type">tree</field> -->
2012-10-22 08:59:42 +00:00
<field name= "priority" eval= "20" />
2012-10-19 17:29:57 +00:00
<field name= "arch" type= "xml" >
<tree string= "Customer Followup" >
2012-10-25 08:08:22 +00:00
<field name= "name" />
<!-- <field name="latest_followup_level_id"/>
<field name= "latest_followup_date" /> -->
<field name= "payment_next_action_date" />
2012-10-24 15:37:34 +00:00
<field name= "payment_next_action" />
2012-10-25 08:08:22 +00:00
<!-- <field name="payment_note"/>
<field name= "phone" /> -->
2012-11-08 14:14:57 +00:00
<field name= "payment_amount_overdue" />
2012-10-24 15:37:34 +00:00
<field name= "payment_responsible_id" />
2012-10-25 08:08:22 +00:00
<!-- <field name="email"/> -->
2012-10-26 11:06:21 +00:00
<field name= "next_followup_level_id" />
2012-10-25 08:08:22 +00:00
<!-- <field name="latest_followup_date"/> -->
2012-10-19 17:29:57 +00:00
</tree>
</field>
</record>
2012-10-24 15:37:34 +00:00
2012-11-06 17:15:22 +00:00
<record id= "customer_followup_search_view" model= "ir.ui.view" >
2012-10-24 15:37:34 +00:00
<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" >
2012-10-31 11:29:07 +00:00
2012-11-06 17:15:22 +00:00
<field name= "name" />
<field name= "payment_next_action" />
2012-10-31 11:29:07 +00:00
<!-- <filter string="Actions to be taken with overdue amount" domain="['&', ('payment_amount_outstanding', '>', 0.0), ('payment_next_action_date', '<=', time.strftime('%%Y - %%m - %%d'))]"/>
<separator /> -->
2012-11-08 14:14:57 +00:00
<filter string= "Overdue amount" domain= "[('payment_amount_overdue', '>', 0.0)]" />
2012-10-31 11:29:07 +00:00
<separator />
<filter string= "Action to be taken now" domain= "[('payment_next_action_date', '<=', 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 />
2012-10-24 15:37:34 +00:00
<filter string= "Without responsible" domain= "[('payment_responsible_id', '=', False)]" />
<filter string= "I am responsible" domain= "[('payment_responsible_id','=', uid)]" />
2012-11-07 16:51:30 +00:00
<group expand= "1" string= "Group by" >
<filter string= "Responsible" context= "{'group_by':'payment_responsible_id'}" />
</group>
2012-10-24 15:37:34 +00:00
</search>
</field>
</record>
2012-10-19 17:29:57 +00:00
<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>
2012-10-22 08:59:42 +00:00
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2012-10-25 08:08:22 +00:00
<field name= "domain" > []</field> <!-- ('customer', '=', True), ('latest_followup_date','!=', False) -->
2012-10-24 15:37:34 +00:00
<field name= "search_view_id" ref= "customer_followup_search_view" />
2012-10-19 17:29:57 +00:00
</record>
2012-10-31 11:29:07 +00:00
2012-11-06 17:15:22 +00:00
<!-- Inherited view -->
2012-10-31 11:29:07 +00:00
2012-11-06 17:15:22 +00:00
<record id= "view_partner_inherit_followup_form" model= "ir.ui.view" >
2012-10-31 11:29:07 +00:00
<field name= "name" > res.partner.followup.form.inherit</field>
<field name= "inherit_id" ref= "base.view_partner_form" />
<field name= "model" > res.partner</field>
2012-11-12 17:38:57 +00:00
<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'))]" >
2012-11-07 16:51:30 +00:00
<div name= "buttons" position= "inside" >
2012-11-08 14:14:57 +00:00
<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', '<=', 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', '<=', 0.0)]}" />
2012-11-07 16:51:30 +00:00
</div>
2012-11-06 17:15:22 +00:00
<page string= "Accounting" position= "before" version= "7.0" >
2012-10-31 11:29:07 +00:00
<page string= "Payments Follow-up" position= "inside" >
2012-11-06 17:15:22 +00:00
<group >
2012-10-31 11:29:07 +00:00
<group >
2012-11-08 14:14:57 +00:00
<field name= "payment_amount_overdue" />
2012-11-06 17:15:22 +00:00
</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 >
2012-10-31 11:29:07 +00:00
<field name= "latest_followup_level_id" />
2012-11-06 17:15:22 +00:00
<field name= "latest_followup_date" />
<field name= "next_followup_level_id" />
2012-11-12 17:38:57 +00:00
<!-- test field
<field name= "latest_fol" />
<field name= "latest_num" /> -->
2012-10-31 11:29:07 +00:00
</group>
2012-11-06 17:15:22 +00:00
<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>
2012-11-08 14:14:57 +00:00
<group >
<field name= "payment_note" />
</group>
2012-11-06 17:15:22 +00:00
</group>
<group >
2012-11-12 17:38:57 +00:00
<field name= "accountmoveline_ids" nolabel= "1" >
<tree string= "Account Move line" editable= "bottom" colors= "red:date_maturity and date_maturity<current_date or date<current_date" >
2012-11-06 17:15:22 +00:00
<field name= "date" readonly= "True" />
<field name= "move_id" readonly= "True" />
2012-11-07 16:51:30 +00:00
<field name= "result" readonly= "True" />
2012-11-06 17:15:22 +00:00
<field name= "blocked" string= "Litigation" />
2012-11-07 16:51:30 +00:00
<field name= "date_maturity" readonly= "True" />
2012-11-06 17:15:22 +00:00
<field name= "reconcile_partial_id" readonly= "True" />
</tree>
</field>
</group>
2012-10-31 11:29:07 +00:00
</page>
2012-11-06 17:15:22 +00:00
</page>
2012-10-31 11:29:07 +00:00
2012-11-12 17:38:57 +00:00
2012-10-31 11:29:07 +00:00
</field>
</record>
2012-11-07 16:51:30 +00:00
2012-11-06 17:15:22 +00:00
<!-- <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> -->
2012-10-19 17:29:57 +00:00
2012-11-06 17:15:22 +00:00
<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>
2012-10-19 17:29:57 +00:00
<!-- Menus about followup of customers -->
2012-11-12 17:38:57 +00:00
<menuitem id= "account_followup_s" action= "action_customer_followup" parent= "account.menu_finance_periodical_processing_billing" name= "Customer Follow-up" />
2012-10-19 17:29:57 +00:00
</data>
</openerp>