[MERGE] mail: merge to get all changes related to mail search view improvment
[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                     <field name="date_followup"/>
46                     <separator orientation="vertical"/>
47                     <filter string="Balance > 0" domain="[('balance','&gt;',0)]" icon="terp-dolar" name="balance_positive"/>
48                     <separator orientation="vertical"/>
49                     <field name="partner_id"/>
50                     <field name="max_followup_id"/>
51                     <field name="company_id" groups="base.group_multi_company"/>
52                 </search>
53             </field>
54         </record>
55
56        <!-- Screen2 -->
57            <record id="account_followup_stat_by_partner_tree" model="ir.ui.view">
58             <field name="name">account_followup.stat.by.partner.tree</field>
59             <field name="model">account_followup.stat.by.partner</field>
60             <field name="type">tree</field>
61             <field name="arch" type="xml">
62                 <tree string="Partner to Remind">
63                    <field name="partner_id"/>
64                    <field name="balance"/>
65                    <field name="max_followup_id"/>
66                    <field name="date_followup"/>
67                    <field name="date_move_last"/>
68                    <field name="company_id" groups="base.group_multi_company"/>
69                 </tree>
70             </field>
71            </record>
72
73            <record id="view_account_followup_print_all" model="ir.ui.view">
74             <field name="name">account.followup.print.all.form</field>
75             <field name="model">account.followup.print.all</field>
76             <field name="type">form</field>
77             <field name="arch" type="xml">
78             <form string="Send followups" version="7.0">
79                 <header>
80                     <button name="do_mail" string="Send Mails" colspan="1" type="object" icon="gtk-execute"/>
81                     <button name="do_print" string="Print Follow Ups" colspan="1" type="object" icon="gtk-print"/>
82                     <button special="cancel" string="Cancel" icon='gtk-cancel'/>
83                 </header>
84                 <notebook>
85                     <page string="Partner Selection">
86                         <field name="partner_ids" context="{'search_default_balance_positive': 1}" domain="[('company_id','=',context.get('company_id',False))]"/>
87                     </page>
88                     <page string="Email Settings">
89                         <group col="4">
90                             <field name="email_conf" colspan="4"/>
91                             <field name="partner_lang" colspan="4"/>
92                             <field name="test_print" colspan="4"/>
93                             <field name="email_subject" colspan="4"/>
94                             <separator string="Email Body" colspan="4" />
95                             <field name="email_body" colspan="4" nolabel="1"/>
96                         </group>
97                         <group string="Legend">
98                             <label string="%%(partner_name)s: Partner name"/>
99                             <label string="%%(user_signature)s: User name"/>
100                             <label string="%%(followup_amount)s: Total Amount Due"/>
101                             <label string="%%(date)s: Current Date"/>
102                             <label string="%%(company_name)s: User's Company name"/>
103                             <label string="%%(company_currency)s: User's Company Currency"/>
104                             <label string="%%(heading)s: Move line header"/>
105                             <label string="%%(line)s: Ledger Posting lines"/>
106                         </group>
107                     </page>
108                 </notebook>
109             </form>
110             </field>
111         </record>
112
113            <record id="view_account_followup_print_all_msg" model="ir.ui.view">
114             <field name="name">account.followup.print.all.msg.form</field>
115             <field name="model">account.followup.print.all</field>
116             <field name="type">form</field>
117             <field name="arch" type="xml">
118             <form string="Summary" version="7.0">
119                 <header>
120                     <button special="cancel" string="Ok" icon='gtk-cancel'/>
121                 </header>
122                 <separator string="Summary"/>
123                 <field name="summary"/>
124             </form>
125             </field>
126         </record>
127
128         <record id="action_account_followup_print_all" model="ir.actions.act_window">
129             <field name="name">Send followups</field>
130             <field name="type">ir.actions.act_window</field>
131             <field name="res_model">account.followup.print.all</field>
132             <field name="view_type">form</field>
133             <field name="view_mode">form</field>
134             <field name="target">new</field>
135         </record>
136     </data>
137 </openerp>