Merge lp:~vauxoo/openerp-mexico-localization/6.1_invoice_report_dev_carlos into lp:openerp-mexico-localization/6.1
- 6.1_invoice_report_dev_carlos
- Merge into 6.1
Proposed by
Juan Carlos Hernandez
Status: | Merged |
---|---|
Merged at revision: | 211 |
Proposed branch: | lp:~vauxoo/openerp-mexico-localization/6.1_invoice_report_dev_carlos |
Merge into: | lp:openerp-mexico-localization/6.1 |
Diff against target: |
349 lines (+103/-107) 3 files modified
invoice_report/report/invoice_report1.py (+4/-4) invoice_report/report/invoice_report1.rml (+98/-102) invoice_report/report/invoice_report_pagos.py (+1/-1) |
To merge this branch: | bzr merge lp:~vauxoo/openerp-mexico-localization/6.1_invoice_report_dev_carlos |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rodolfo Lopez | Pending | ||
Isaac López Zúñiga | Pending | ||
Moisés López - http://www.vauxoo.com | Pending | ||
Review via email:
|
Commit message
Description of the change
Se migro reportes a las 6.1
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'invoice_report/report/invoice_report1.py' |
2 | --- invoice_report/report/invoice_report1.py 2011-11-19 19:36:00 +0000 |
3 | +++ invoice_report/report/invoice_report1.py 2012-12-05 22:41:32 +0000 |
4 | @@ -119,12 +119,12 @@ |
5 | subq=""" |
6 | select b.id-- devuelve los ids de voucher_line correspondientes a esa factura |
7 | from account_voucher a |
8 | - inner join account_voucher_line b |
9 | + join account_voucher_line b |
10 | on a.id=b.voucher_id |
11 | and b.amount<>0 |
12 | - inner join account_move_line c |
13 | + join account_move_line c |
14 | on c.id=b.move_line_id |
15 | - inner join account_invoice d |
16 | + join account_invoice d |
17 | on d.move_id=c.move_id |
18 | where d.id=%s |
19 | and a.state='posted' |
20 | @@ -147,7 +147,7 @@ |
21 | ('state', 'not in', ['cancel', 'proforma2', 'proforma']), |
22 | ('date_invoice', '>=', date_start), |
23 | ('date_invoice', '<=', date_end), |
24 | - ('currency_id', '=', currency_id), ] ) |
25 | + ('currency_id', '=', currency_id[0],), ], ) |
26 | inv_brw= inv_obj.browse(self.cr, self.uid, inv_ids) |
27 | self.invoice=inv_brw |
28 | self.haber_tot = 0 |
29 | |
30 | === modified file 'invoice_report/report/invoice_report1.rml' |
31 | --- invoice_report/report/invoice_report1.rml 2011-11-24 18:35:44 +0000 |
32 | +++ invoice_report/report/invoice_report1.rml 2012-12-05 22:41:32 +0000 |
33 | @@ -91,35 +91,28 @@ |
34 | <paraStyle name="P6" fontName="Helvetica" fontSize="9.0" leading="11"/> |
35 | <paraStyle name="P7" fontName="Helvetica" fontSize="9.0" leading="11"/> |
36 | <paraStyle name="P8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/> |
37 | - <paraStyle name="P9" fontName="Helvetica" fontSize="7.0" leading="0"/> |
38 | - <paraStyle name="P9_7" fontName="Helvetica" fontSize="7.0" leading="7"/> |
39 | - <paraStyle name="P10" fontName="Helvetica" fontSize="7.0" leading="0" alignment="RIGHT"/> |
40 | - <paraStyle name="P10_7" fontName="Helvetica" fontSize="7.0" leading="7" alignment="RIGHT"/> |
41 | + <paraStyle name="P9" fontName="Helvetica" fontSize="7.0" leading="9"/> |
42 | + <paraStyle name="P10" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT"/> |
43 | <paraStyle name="P11" fontName="Helvetica" fontSize="7.0" leading="9"/> |
44 | - <paraStyle name="P12" fontName="Helvetica" fontSize="10.0" leading="13"/> |
45 | + <paraStyle name="P12" fontName="Helvetica" fontSize="7.0" leading="9"/> |
46 | <paraStyle name="P13" fontName="Helvetica" fontSize="10.0" leading="13"/> |
47 | - <paraStyle name="P14" fontName="Helvetica" fontSize="6.0" leading="8"/> |
48 | - <paraStyle name="P15" fontName="Helvetica" fontSize="6.0" leading="8" alignment="RIGHT"/> |
49 | - <paraStyle name="P16" fontName="Helvetica" fontSize="2.0" leading="3"/> |
50 | + <paraStyle name="P14" fontName="Helvetica" fontSize="10.0" leading="13"/> |
51 | + <paraStyle name="P15" fontName="Helvetica" fontSize="6.0" leading="8"/> |
52 | + <paraStyle name="P16" fontName="Helvetica" fontSize="6.0" leading="8" alignment="RIGHT"/> |
53 | <paraStyle name="P17" fontName="Helvetica" fontSize="2.0" leading="3"/> |
54 | <paraStyle name="P18" fontName="Helvetica" fontSize="2.0" leading="3"/> |
55 | - <paraStyle name="P19" fontName="Helvetica" fontSize="2.0" leading="3" alignment="RIGHT"/> |
56 | - <paraStyle name="P20" fontName="Helvetica" fontSize="10.0" leading="13" alignment="RIGHT"/> |
57 | - <paraStyle name="P21" fontName="Helvetica" fontSize="2.0" leading="3"/> |
58 | - <paraStyle name="P22" fontName="Helvetica" fontSize="9.0" leading="11"/> |
59 | - <paraStyle name="P23" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="10.0" leading="13"/> |
60 | - <paraStyle name="P24" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="6.0" leading="8"/> |
61 | - <paraStyle name="P25" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="8.0" leading="10"/> |
62 | - <paraStyle name="P26" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="9.0" leading="11"/> |
63 | - <paraStyle name="P27" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="7.0" leading="0"/> |
64 | - <paraStyle name="P28" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="7.0" leading="0"/> |
65 | + <paraStyle name="P19" fontName="Helvetica" fontSize="2.0" leading="3"/> |
66 | + <paraStyle name="P20" fontName="Helvetica" fontSize="2.0" leading="3" alignment="RIGHT"/> |
67 | + <paraStyle name="P21" fontName="Helvetica" fontSize="10.0" leading="13" alignment="RIGHT"/> |
68 | + <paraStyle name="P22" fontName="Helvetica" fontSize="2.0" leading="3"/> |
69 | + <paraStyle name="P23" fontName="Helvetica" fontSize="9.0" leading="11"/> |
70 | + <paraStyle name="P24" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="10.0" leading="13"/> |
71 | + <paraStyle name="P25" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="6.0" leading="8"/> |
72 | + <paraStyle name="P26" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="8.0" leading="10"/> |
73 | + <paraStyle name="P27" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="9.0" leading="11"/> |
74 | + <paraStyle name="P28" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="7.0" leading="9"/> |
75 | <paraStyle name="P29" rightIndent="0.0" leftIndent="-3.0" fontName="Helvetica" fontSize="9.0" leading="11"/> |
76 | - <paraStyle name="P30" fontName="Helvetica" fontSize="7.0" leading="9"/> |
77 | - <paraStyle name="P31" fontName="Helvetica" fontSize="9.0" leading="11"/> |
78 | - <paraStyle name="P32" fontName="Helvetica" fontSize="9.0" leading="11" alignment="CENTER"/> |
79 | - <paraStyle name="P33" fontName="Helvetica" fontSize="2.0" leading="3"/> |
80 | - <paraStyle name="P34" fontName="Helvetica" fontSize="9.0" leading="11"/> |
81 | - <paraStyle name="P35" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/> |
82 | + <paraStyle name="P30" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="7.0" leading="9"/> |
83 | <paraStyle name="Standard" fontName="Helvetica"/> |
84 | <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/> |
85 | <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> |
86 | @@ -131,16 +124,16 @@ |
87 | <images/> |
88 | </stylesheet> |
89 | <story> |
90 | - <para style="P21"> |
91 | + <para style="P22"> |
92 | <font color="white"> </font> |
93 | </para> |
94 | <blockTable colWidths="303.0,303.0" style="Tabla8"> |
95 | <tr> |
96 | <td> |
97 | - <para style="P24">[[ repeatIn(objects,'o') ]] <font face="Helvetica" size="10.0">[[ get_company(data['uid']).company_id.name ]]</font></para> |
98 | + <para style="P25">[[ repeatIn(objects,'o') ]] <font face="Helvetica" size="10.0">[[ get_company(data['uid']).company_id.name ]]</font></para> |
99 | </td> |
100 | <td> |
101 | - <para style="P20"> |
102 | + <para style="P21"> |
103 | <font color="white"> </font> |
104 | </para> |
105 | </td> |
106 | @@ -149,20 +142,20 @@ |
107 | <blockTable colWidths="114.0,249.0,242.0" style="Tabla7"> |
108 | <tr> |
109 | <td> |
110 | - <para style="P26">Estado de cuenta de: </para> |
111 | - </td> |
112 | - <td> |
113 | - <para style="P23">[[o.name]]</para> |
114 | - <para style="P25">[[ get_address(o.id).street ]]</para> |
115 | - <para style="P25">[[ get_address(o.id).street2 ]]</para> |
116 | - <para style="P25">[[ get_address(o.id).zip ]]</para> |
117 | - </td> |
118 | - <td> |
119 | - <para style="P12"> |
120 | + <para style="P27">Estado de cuenta de: </para> |
121 | + </td> |
122 | + <td> |
123 | + <para style="P24">[[o.name]]</para> |
124 | + <para style="P26">[[ get_address(o.id).street ]]</para> |
125 | + <para style="P26">[[ get_address(o.id).street2 ]]</para> |
126 | + <para style="P26">[[ get_address(o.id).zip ]]</para> |
127 | + </td> |
128 | + <td> |
129 | + <para style="P13"> |
130 | <font face="Helvetica" size="9.0">RFC: [[o.vat ]]</font> |
131 | </para> |
132 | <para style="P6">Moneda: [[ get_currency(data['form']['currency_id']).name ]]</para> |
133 | - <para style="P12"> |
134 | + <para style="P13"> |
135 | <font face="Helvetica" size="9.0">Fecha Impresion:</font> |
136 | <font face="Helvetica" size="9.0"> [[ time.strftime("%Y-%m-%d ") ]]</font> |
137 | </para> |
138 | @@ -176,7 +169,7 @@ |
139 | </td> |
140 | </tr> |
141 | </blockTable> |
142 | - <blockTable colWidths="92.0,57.0,117.0,72.0,75.0,65.0,140.0" style="Tabla3"> |
143 | + <blockTable colWidths="96.0,57.0,117.0,72.0,76.0,63.0,118.0" style="Tabla3"> |
144 | <tr> |
145 | <td> |
146 | <para style="P1">Fecha</para> |
147 | @@ -208,14 +201,14 @@ |
148 | </td> |
149 | </tr> |
150 | </blockTable> |
151 | - <blockTable rowHeights="1cm" colWidths="92.0,57.0,117.0,72.0,75.0,65.0,140.0" style="Tabla5"> |
152 | + <blockTable colWidths="99.0,56.0,117.0,73.0,74.0,65.0,120.0" style="Tabla5"> |
153 | <tr> |
154 | <td> |
155 | - <para style="P13">[[ repeatIn(get_invoice(o.id, data['form']['date_start'], data['form']['date_end'], data['form']['currency_id'] ),'inv') ]]</para> |
156 | - <blockTable colWidths="92.0,57.0,117.0,72.0,75.0,65.0,180.0" style="Tabla6"> |
157 | + <para style="P14">[[ repeatIn(get_invoice(o.id, data['form']['date_start'], data['form']['date_end'], data['form']['currency_id'] ),'inv') ]]</para> |
158 | + <blockTable colWidths="92.0,57.0,117.0,72.0,75.0,65.0,120.0" style="Tabla6"> |
159 | <tr> |
160 | <td> |
161 | - <para style="P27">[[ inv.date_invoice ]]</para> |
162 | + <para style="P28">[[ inv.date_invoice ]]</para> |
163 | </td> |
164 | <td> |
165 | <para style="P9">[[inv.date_due]]</para> |
166 | @@ -242,7 +235,7 @@ |
167 | </tr> |
168 | <tr> |
169 | <td> |
170 | - <para style="P28">[[m.voucher_id.date]]</para> |
171 | + <para style="P30"><font face="Helvetica">[[ repeatIn(get_invoice(o.id, data['form']['date_start'], data['form']['date_end'], data['form']['currency_id'] ),'inv') ]]</font>[[m.voucher_id.date]]</para> |
172 | </td> |
173 | <td> |
174 | <para style="P9"> |
175 | @@ -345,11 +338,14 @@ |
176 | </td> |
177 | </tr> |
178 | </blockTable> |
179 | + <para style="Standard"> |
180 | + <font color="white"> </font> |
181 | + </para> |
182 | <para style="Standard">Movimientos</para> |
183 | <para style="Standard"> |
184 | <font color="white"> </font> |
185 | </para> |
186 | - <blockTable colWidths="64.0,46.0,147.0,59.0,62.0,105.0,126.0" style="Tabla10"> |
187 | + <blockTable colWidths="61.0,46.0,147.0,59.0,62.0,105.0,126.0" style="Tabla10"> |
188 | <tr> |
189 | <td> |
190 | <para style="P1">Fecha mov</para> |
191 | @@ -376,72 +372,72 @@ |
192 | </td> |
193 | </tr> |
194 | </blockTable> |
195 | - <para style="P5">===================================================================================================</para> |
196 | - <blockTable rowHeights="0.6cm" colWidths="605.0" style="Tablamovs"> |
197 | + <para style="P23">---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</para> |
198 | + <blockTable colWidths="605.0" style="Tablamovs"> |
199 | <tr> |
200 | <td> |
201 | - <para style="P14">[[repeatIn(get_mov_sin_fact(o.id, data['form']['date_start'], data['form']['date_end'] ),'move_l') ]]</para> |
202 | + <para style="P15">[[repeatIn(get_mov_sin_fact(o.id, data['form']['date_start'], data['form']['date_end'] ),'move_l') ]]</para> |
203 | <blockTable colWidths="59.0,46.0,146.0,59.0,62.0,219.0,9.0" style="Tabla1"> |
204 | <tr> |
205 | <td> |
206 | - <para style="P30">[[ move_l.move_id.date ]]</para> |
207 | - </td> |
208 | - <td> |
209 | - <para style="P9_7">[[ move_l.reconcile_id.id and 'Conciliado' or '' ]]</para> |
210 | - </td> |
211 | - <td> |
212 | - <para style="P9_7">Cta – [[move_l.account_id.name]]</para> |
213 | - </td> |
214 | - <td> |
215 | - <para style="P10_7">[[ formatLang(move_l.debit) ]]</para> |
216 | - </td> |
217 | - <td> |
218 | - <para style="P10_7">[[ formatLang(move_l.credit) ]]</para> |
219 | - </td> |
220 | - <td> |
221 | - <para style="P9_7">[[ move_l.move_id.id ]] - [[ move_l.move_id.name ]]</para> |
222 | - </td> |
223 | - <td> |
224 | - <para style="P9_7"> |
225 | + <para style="P12">[[ move_l.move_id.date ]]</para> |
226 | + </td> |
227 | + <td> |
228 | + <para style="P9">[[ move_l.reconcile_id.id and 'Conciliado' or '' ]]</para> |
229 | + </td> |
230 | + <td> |
231 | + <para style="P9">Cta – [[move_l.account_id.name]]</para> |
232 | + </td> |
233 | + <td> |
234 | + <para style="P10">[[ formatLang(move_l.debit) ]]</para> |
235 | + </td> |
236 | + <td> |
237 | + <para style="P10">[[ formatLang(move_l.credit) ]]</para> |
238 | + </td> |
239 | + <td> |
240 | + <para style="P9">[[ move_l.move_id.id ]] - [[ move_l.move_id.name ]]</para> |
241 | + </td> |
242 | + <td> |
243 | + <para style="P9"> |
244 | <font color="white"> </font> |
245 | </para> |
246 | </td> |
247 | </tr> |
248 | <tr> |
249 | <td> |
250 | - <para style="P16"> |
251 | - <font color="white"> </font> |
252 | - </para> |
253 | - </td> |
254 | - <td> |
255 | - <para style="P18"> |
256 | - <font color="white"> </font> |
257 | - </para> |
258 | - </td> |
259 | - <td> |
260 | - <para style="P18"> |
261 | - <font color="white"> </font> |
262 | - </para> |
263 | - </td> |
264 | - <td> |
265 | - <para style="P19">[[ suma_move_debit( move_l.debit ) ]]</para> |
266 | - </td> |
267 | - <td> |
268 | - <para style="P19">[[ suma_move_credit( move_l.credit ) ]]</para> |
269 | - </td> |
270 | - <td> |
271 | - <para style="P19"> |
272 | - <font color="white"> </font> |
273 | - </para> |
274 | - </td> |
275 | - <td> |
276 | - <para style="P18"> |
277 | + <para style="P17"> |
278 | + <font color="white"> </font> |
279 | + </para> |
280 | + </td> |
281 | + <td> |
282 | + <para style="P19"> |
283 | + <font color="white"> </font> |
284 | + </para> |
285 | + </td> |
286 | + <td> |
287 | + <para style="P19"> |
288 | + <font color="white"> </font> |
289 | + </para> |
290 | + </td> |
291 | + <td> |
292 | + <para style="P20">[[ suma_move_debit( move_l.debit ) ]]</para> |
293 | + </td> |
294 | + <td> |
295 | + <para style="P20">[[ suma_move_credit( move_l.credit ) ]]</para> |
296 | + </td> |
297 | + <td> |
298 | + <para style="P20"> |
299 | + <font color="white"> </font> |
300 | + </para> |
301 | + </td> |
302 | + <td> |
303 | + <para style="P19"> |
304 | <font color="white"> </font> |
305 | </para> |
306 | </td> |
307 | </tr> |
308 | </blockTable> |
309 | - <para style="P17"> |
310 | + <para style="P18"> |
311 | <font color="white"> </font> |
312 | </para> |
313 | </td> |
314 | @@ -506,13 +502,13 @@ |
315 | <para style="Table Contents">Grand Total</para> |
316 | </td> |
317 | <td> |
318 | - <para style="P15">[[formatLang( get_grand_debit(get_total_move_debit(), get_total_debe()) ) ]]</para> |
319 | - </td> |
320 | - <td> |
321 | - <para style="P15">[[formatLang( get_grand_credit(get_total_move_credit(), get_total_haber() ) ) ]]</para> |
322 | - </td> |
323 | - <td> |
324 | - <para style="P15">[[ formatLang( get_total_saldo() ) ]]</para> |
325 | + <para style="P16">[[formatLang( get_grand_debit(get_total_move_debit(), get_total_debe()) ) ]]</para> |
326 | + </td> |
327 | + <td> |
328 | + <para style="P16">[[formatLang( get_grand_credit(get_total_move_credit(), get_total_haber() ) ) ]]</para> |
329 | + </td> |
330 | + <td> |
331 | + <para style="P16">[[ formatLang( get_total_saldo() ) ]]</para> |
332 | </td> |
333 | <td> |
334 | <para style="Table Contents"> |
335 | |
336 | === modified file 'invoice_report/report/invoice_report1.sxw' |
337 | Binary files invoice_report/report/invoice_report1.sxw 2011-11-24 18:35:44 +0000 and invoice_report/report/invoice_report1.sxw 2012-12-05 22:41:32 +0000 differ |
338 | === modified file 'invoice_report/report/invoice_report_pagos.py' |
339 | --- invoice_report/report/invoice_report_pagos.py 2011-11-19 19:36:00 +0000 |
340 | +++ invoice_report/report/invoice_report_pagos.py 2012-12-05 22:41:32 +0000 |
341 | @@ -120,7 +120,7 @@ |
342 | |
343 | def _get_payment(self, partner_id, date_start, date_end, currency_id): |
344 | vou_obj = self.pool.get('account.voucher') |
345 | - vou_ids = vou_obj.search(self.cr, self.uid, [('partner_id', '=', partner_id), ('date', '>=', date_start), ('date', '<=', date_end), ('currency_id', '=', currency_id), ('state', '=', 'posted')] ) |
346 | + vou_ids = vou_obj.search(self.cr, self.uid, [('partner_id', '=', partner_id), ('date', '>=', date_start), ('date', '<=', date_end), ('payment_rate_currency_id', '=', currency_id[0]), ('state', '=', 'posted')] ) |
347 | vou_brw= vou_obj.browse(self.cr, self.uid, vou_ids) |
348 | self.vou_brw=vou_brw |
349 | self.total_final_pagado=0 |