[IMP] mail : Improved the Search View.
[odoo/odoo.git] / addons / account_followup / wizard / account_followup_print_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data noupdate="0">
4
5         <record id="view_account_followup_print" model="ir.ui.view">
6             <field name="name">account.followup.print.form</field>
7             <field name="model">account.followup.print</field>
8             <field name="type">form</field>
9             <field name="arch" type="xml">
10             <form string="Send followups" version="7.0">
11                 <header>
12                     <button name="do_continue" string="Continue" colspan="1" type="object" icon="gtk-ok"/>
13                     <button special="cancel"  string="Cancel" icon='gtk-cancel'/>
14                 </header>
15                 <separator string="Send Follow-Ups"/>
16                 <label string ="This feature allows you to send reminders to partners with pending invoices. You can send them the default message for unpaid invoices or manually enter a message should you need to remind them of a specific information."/>
17                 <group col="4">
18                     <field name="followup_id"/>
19                     <field name="date"/>
20                 </group>
21             </form>
22             </field>
23         </record>
24
25         <record id="action_account_followup_print" model="ir.actions.act_window">
26             <field name="name">Send followups</field>
27             <field name="type">ir.actions.act_window</field>
28             <field name="res_model">account.followup.print</field>
29             <field name="view_type">form</field>
30             <field name="view_mode">form</field>
31             <field name="target">new</field>
32         </record>
33
34         <menuitem action="action_account_followup_print"
35                   id="account_followup_print_menu"
36                   parent="account.menu_finance_periodical_processing_billing"
37                   sequence="10"/>
38
39            <record id="account_followup_stat_by_partner_search" model="ir.ui.view">
40             <field name="name">account_followup.stat.by.partner.search</field>
41             <field name="model">account_followup.stat.by.partner</field>
42             <field name="type">search</field>
43             <field name="arch" type="xml">
44                 <search string="Partner to Remind">
45                    <filter string="Balance > 0" domain="[('balance','&gt;',0)]" icon="terp-dolar" name="balance_positive"/>
46                    <separator orientation="vertical"/>
47                    <field name="partner_id"/>
48                    <field name="max_followup_id"/>
49                    <field name="date_followup"/>
50                    <field name="company_id" groups="base.group_multi_company"/>
51                 </search>
52             </field>
53            </record>
54
55        <!-- Screen2 -->
56            <record id="account_followup_stat_by_partner_tree" model="ir.ui.view">
57             <field name="name">account_followup.stat.by.partner.tree</field>
58             <field name="model">account_followup.stat.by.partner</field>
59             <field name="type">tree</field>
60             <field name="arch" type="xml">
61                 <tree string="Partner to Remind">
62                    <field name="partner_id"/>
63                    <field name="balance"/>
64                    <field name="max_followup_id"/>
65                    <field name="date_followup"/>
66                    <field name="date_move_last"/>
67                    <field name="company_id" groups="base.group_multi_company"/>
68                 </tree>
69             </field>
70            </record>
71
72            <record id="view_account_followup_print_all" model="ir.ui.view">
73             <field name="name">account.followup.print.all.form</field>
74             <field name="model">account.followup.print.all</field>
75             <field name="type">form</field>
76             <field name="arch" type="xml">
77             <form string="Send followups" version="7.0">
78                 <header>
79                     <button name="do_mail" string="Send Mails" colspan="1" type="object" icon="gtk-execute"/>
80                     <button name="do_print" string="Print Follow Ups" colspan="1" type="object" icon="gtk-print"/>
81                     <button special="cancel" string="Cancel" icon='gtk-cancel'/>
82                 </header>
83                 <notebook>
84                     <page string="Partner Selection">
85                         <field name="partner_ids" context="{'search_default_balance_positive': 1}" domain="[('company_id','=',context.get('company_id',False))]"/>
86                     </page>
87                     <page string="Email Settings">
88                         <group col="4">
89                             <field name="email_conf" colspan="4"/>
90                             <field name="partner_lang" colspan="4"/>
91                             <field name="test_print" colspan="4"/>
92                             <field name="email_subject" colspan="4"/>
93                             <separator string="Email Body" colspan="4" />
94                             <field name="email_body" colspan="4" nolabel="1"/>
95                         </group>
96                         <group string="Legend">
97                             <label string="%%(partner_name)s: Partner name"/>
98                             <label string="%%(user_signature)s: User name"/>
99                             <label string="%%(followup_amount)s: Total Amount Due"/>
100                             <label string="%%(date)s: Current Date"/>
101                             <label string="%%(company_name)s: User's Company name"/>
102                             <label string="%%(company_currency)s: User's Company Currency"/>
103                             <label string="%%(heading)s: Move line header"/>
104                             <label string="%%(line)s: Ledger Posting lines"/>
105                         </group>
106                     </page>
107                 </notebook>
108             </form>
109             </field>
110         </record>
111
112            <record id="view_account_followup_print_all_msg" model="ir.ui.view">
113             <field name="name">account.followup.print.all.msg.form</field>
114             <field name="model">account.followup.print.all</field>
115             <field name="type">form</field>
116             <field name="arch" type="xml">
117             <form string="Summary" version="7.0">
118                 <header>
119                     <button special="cancel" string="Ok" icon='gtk-cancel'/>
120                 </header>
121                 <separator string="Summary"/>
122                 <field name="summary"/>
123             </form>
124             </field>
125         </record>
126
127         <record id="action_account_followup_print_all" model="ir.actions.act_window">
128             <field name="name">Send followups</field>
129             <field name="type">ir.actions.act_window</field>
130             <field name="res_model">account.followup.print.all</field>
131             <field name="view_type">form</field>
132             <field name="view_mode">form</field>
133             <field name="target">new</field>
134         </record>
135     </data>
136 </openerp>