[FIX] website_forum: post edition working again
[odoo/odoo.git] / addons / account_budget / views / report_crossoveredbudget.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3 <data>
4 <template id="report_crossoveredbudget">
5     <t t-call="report.html_container">
6         <t t-foreach="docs" t-as="o">
7             <t t-call="report.internal_layout">
8                 <div class="page">
9                     <h2>Budget</h2>
10
11                     <div class="row mt32">
12                         <div class="col-xs-3">
13                             <strong>Analysis from:</strong>
14                             <p><span t-esc="formatLang(data['form']['date_from'], date=True)"/> to
15                             <span t-esc="formatLang(data['form']['date_to'], date=True)"/></p>
16                         </div>
17                         <div class="col-xs-3">
18                             <strong>Budget:</strong>
19                             <p t-esc="o.name"/>
20                         </div>
21                         <div class="col-xs-3">
22                             <strong>Currency:</strong>
23                             <p t-esc="res_company.currency_id.name"/>
24                         </div>
25                     </div>
26
27                     <table class="table table-condensed">
28                         <thead>
29                             <tr>
30                                 <th>Description</th>
31                                 <th class="text-right">Theoretical Amt</th>
32                                 <th class="text-right">Planned Amt</th>
33                                 <th class="text-right">Practical Amt</th>
34                                 <th class="text-center">Perc(%)</th>
35                             </tr>
36                         </thead>
37                         <tbody>
38                             <tr t-foreach="funct(o, data['form'])" t-as="line">
39                                 <td>
40                                     <span style="color: white;" t-esc="'... '*(line['status'] - 1)"/>
41                                     <span t-esc="line['name']"/>
42                                 </td>
43                                 <td class="text-right">
44                                     <span t-esc="formatLang(line['theo'], dp='Account', currency_obj=res_company.currency_id)"/>
45                                 </td>
46                                 <td class="text-right">
47                                     <span t-esc="formatLang(line['pln'], dp='Account', currency_obj=res_company.currency_id)"/>
48                                 </td>
49                                 <td class="text-right">
50                                     <span t-esc="formatLang(line['prac'], dp='Account', currency_obj=res_company.currency_id)"/>
51                                 </td>
52                                 <td class="text-center">
53                                     <span t-esc="formatLang(line['perc'],digits=2)"/> %
54                                 </td>
55                             </tr>
56                             <tr t-foreach="funct_total(data['form'])" t-as="tot">
57                                 <td>
58                                   <strong>Total:</strong>
59                                 </td>
60                                 <td class="text-right">
61                                     <strong t-esc="formatLang(tot['tot_theo'], dp='Account', currency_obj=res_company.currency_id)"/>
62                                 </td>
63                                 <td class="text-right">
64                                     <strong t-esc="formatLang(tot['tot_pln'], dp='Account', currency_obj=res_company.currency_id)"/>
65                                 </td>
66                                 <td class="text-right">
67                                     <strong t-esc="formatLang(tot['tot_prac'], dp='Account', currency_obj=res_company.currency_id)"/>
68                                 </td>
69                                 <td class="text-center">
70                                     <strong t-esc="formatLang(tot['tot_perc'], digits=2)"/> %
71                                 </td>
72                             </tr>
73                         </tbody>
74                     </table>
75                 </div>
76             </t>
77         </t>
78     </t>
79 </template>
80 </data>
81 </openerp>