Merge lp:~vauxoo/openerp-mexico-localization/7.0-changed_in_report_facturae-dev-ernesto into lp:openerp-mexico-localization/7.0

Status: Merged
Merged at revision: 296
Proposed branch: lp:~vauxoo/openerp-mexico-localization/7.0-changed_in_report_facturae-dev-ernesto
Merge into: lp:openerp-mexico-localization/7.0
Diff against target: 75 lines (+23/-7)
3 files modified
l10n_mx_facturae_report/data.xml (+9/-0)
l10n_mx_facturae_report/report/invoice_facturae_html.mako (+10/-6)
l10n_mx_facturae_report/report/invoice_facturae_html.py (+4/-1)
To merge this branch: bzr merge lp:~vauxoo/openerp-mexico-localization/7.0-changed_in_report_facturae-dev-ernesto
Reviewer Review Type Date Requested Status
Luis Ernesto García Medina - http://www.vauxoo.com Pending
Isaac López Zúñiga Pending
Review via email: mp+186153@code.launchpad.net

Description of the change

Se mejoro el reporte para evitar cambios al imprimir el reporte con notas (problemas con reducción del tamaño de la fuente)

To post a comment you must log in.
295. By Luis Ernesto García Medina - http://www.vauxoo.com

[REF][l10n_mx_facturae_report] will change the font of the notes to make it look better

296. By Luis Ernesto García Medina - http://www.vauxoo.com

[REF][l10n_mx_facturae_report] Added validation for when there are no values ​​in dinamic_text

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_mx_facturae_report/data.xml'
2--- l10n_mx_facturae_report/data.xml 2013-09-06 01:07:43 +0000
3+++ l10n_mx_facturae_report/data.xml 2013-09-19 00:09:09 +0000
4@@ -245,6 +245,15 @@
5 p.cadena_with_cbb_cfd{
6 width:55em;
7 }
8+pre {
9+font-size: 6pt;
10+font-family:helvetica;
11+white-space: pre-wrap;
12+white-space: -moz-pre-wrap !important;
13+white-space: -pre-wrap;
14+white-space: -o-pre-wrap;
15+word-wrap: break-word;
16+}
17 ]]> </field>
18 <field name="name">Facturae</field>
19 </record>
20
21=== modified file 'l10n_mx_facturae_report/report/invoice_facturae_html.mako'
22--- l10n_mx_facturae_report/report/invoice_facturae_html.mako 2013-09-06 01:07:43 +0000
23+++ l10n_mx_facturae_report/report/invoice_facturae_html.mako 2013-09-19 00:09:09 +0000
24@@ -282,9 +282,6 @@
25 %endfor
26 </table>
27 %endif
28- <table class="basic_table">
29- <tr><td class="address"><pre>${ get_text_promissory(o.company_id, o.partner_id, address_emitter, o) or ''|entity }</pre></td></tr>
30- </table>
31 <!--code for cfd 3.2-->
32 %if 'cfdi' in o.invoice_sequence_id.approval_id.type:
33 <table class="basic_table" rules="cols" style="border:1.5px solid grey;">
34@@ -405,15 +402,22 @@
35 %endif
36 </tr>
37 </table>
38- <!--</span> si se activan, forzan un brinco de linea
39- </div>-->
40+ <!--</span> si se activan, forzan un brinco de linea-->
41+ </div>
42 %endif
43 %if not o.invoice_sequence_id.approval_id.type:
44 <hr>
45 ${_('No se encontr&oacute; la aprobaci&oacute;n')}
46 <hr>
47 %endif
48-
49+ <br></br>
50+ <section>
51+ %if o.company_id.dinamic_text:
52+ <table class="basic_table" style="border:1.5px solid grey;">
53+ <tr><td class="address"><pre style='pre'>${ get_text_promissory(o.company_id, o.partner_id, address_emitter, o) or ''|entity }</pre></td></tr>
54+ </table>
55+ %endif
56+ </section>
57 <p style="page-break-after:always"></p>
58 %endfor
59
60
61=== modified file 'l10n_mx_facturae_report/report/invoice_facturae_html.py'
62--- l10n_mx_facturae_report/report/invoice_facturae_html.py 2013-09-04 00:41:46 +0000
63+++ l10n_mx_facturae_report/report/invoice_facturae_html.py 2013-09-19 00:09:09 +0000
64@@ -250,7 +250,10 @@
65 company.id, context=context)
66 if company.dinamic_text:
67 try:
68- text = company.dinamic_text % eval("{" + company.dict_var + "}")
69+ if company.dict_var:
70+ text = company.dinamic_text % eval("{" + company.dict_var + "}")
71+ else:
72+ text = company.dinamic_text
73 except:
74 return text
75 return text