[MERGE]
commit
dc0bfde56b
|
@ -685,3 +685,11 @@ msgstr "12 Meses | YTD"
|
||||||
msgid "Total"
|
msgid "Total"
|
||||||
msgstr "Total"
|
msgstr "Total"
|
||||||
|
|
||||||
|
#. module: account_financial_report
|
||||||
|
#: code:addons/account_financial_report/report/parser.py:82
|
||||||
|
#, python-format
|
||||||
|
msgid "\n"
|
||||||
|
"VAT OF COMPANY NOT AVAILABLE"
|
||||||
|
msgstr "\n"
|
||||||
|
"VAT DE LA COMPAÑIA NO DISPONIBLE"
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<td><para style="TOP_TITLE"></para></td>
|
<td><para style="TOP_TITLE"></para></td>
|
||||||
<td><para style="TITLE_CENTER_NAME">
|
<td><para style="TITLE_CENTER_NAME">
|
||||||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
||||||
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
|
<font>[[ get_vat_by_country(data['form']) ]]</font>
|
||||||
</para></td>
|
</para></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<td><para style="TOP_TITLE"></para></td>
|
<td><para style="TOP_TITLE"></para></td>
|
||||||
<td><para style="TITLE_CENTER_NAME">
|
<td><para style="TITLE_CENTER_NAME">
|
||||||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
||||||
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
|
<font>[[ get_vat_by_country(data['form']) ]]</font>
|
||||||
</para></td>
|
</para></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<td><para style="TOP_TITLE"></para></td>
|
<td><para style="TOP_TITLE"></para></td>
|
||||||
<td><para style="TITLE_CENTER_NAME">
|
<td><para style="TITLE_CENTER_NAME">
|
||||||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
||||||
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
|
<font>[[ get_vat_by_country(data['form']) ]]</font>
|
||||||
</para></td>
|
</para></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<td><para style="TOP_TITLE"></para></td>
|
<td><para style="TOP_TITLE"></para></td>
|
||||||
<td><para style="TITLE_CENTER_NAME">
|
<td><para style="TITLE_CENTER_NAME">
|
||||||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
||||||
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
|
<font>[[ get_vat_by_country(data['form']) ]]</font>
|
||||||
</para></td>
|
</para></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<td><para style="TOP_TITLE"></para></td>
|
<td><para style="TOP_TITLE"></para></td>
|
||||||
<td><para style="TITLE_CENTER_NAME">
|
<td><para style="TITLE_CENTER_NAME">
|
||||||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
||||||
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
|
<font>[[ get_vat_by_country(data['form']) ]]</font>
|
||||||
</para></td>
|
</para></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</blockTable>
|
</blockTable>
|
||||||
</place>
|
</place>
|
||||||
<drawRightString x="270mm" y="5mm"> Pag.: <pageNumber/></drawRightString>
|
<drawRightString x="270mm" y="5mm"> Pag.: <pageNumber/>-<pageCount/></drawRightString>
|
||||||
</pageGraphics>
|
</pageGraphics>
|
||||||
|
|
||||||
</pageTemplate>
|
</pageTemplate>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<td><para style="TOP_TITLE"></para></td>
|
<td><para style="TOP_TITLE"></para></td>
|
||||||
<td><para style="TITLE_CENTER_NAME">
|
<td><para style="TITLE_CENTER_NAME">
|
||||||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
||||||
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
|
<font>[[ get_vat_by_country(data['form']) ]]</font>
|
||||||
</para></td>
|
</para></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<td><para style="TOP_TITLE"></para></td>
|
<td><para style="TOP_TITLE"></para></td>
|
||||||
<td><para style="TITLE_CENTER_NAME">
|
<td><para style="TITLE_CENTER_NAME">
|
||||||
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
<font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
|
||||||
<font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
|
<font>[[ get_vat_by_country(data['form']) ]]</font>
|
||||||
</para></td>
|
</para></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -59,9 +59,28 @@ class account_balance(report_sxw.rml_parse):
|
||||||
'get_informe_text': self.get_informe_text,
|
'get_informe_text': self.get_informe_text,
|
||||||
'get_month': self.get_month,
|
'get_month': self.get_month,
|
||||||
'exchange_name': self.exchange_name,
|
'exchange_name': self.exchange_name,
|
||||||
|
'get_vat_by_country': self.get_vat_by_country,
|
||||||
})
|
})
|
||||||
self.context = context
|
self.context = context
|
||||||
|
|
||||||
|
|
||||||
|
def get_vat_by_country(self, form):
|
||||||
|
"""
|
||||||
|
Return the vat of the partner by country
|
||||||
|
"""
|
||||||
|
rc_obj = self.pool.get('res.company')
|
||||||
|
country_code=rc_obj.browse(self.cr, self.uid, form['company_id'][0]).partner_id.country_id.code or ''
|
||||||
|
string_vat= rc_obj.browse(self.cr, self.uid, form['company_id'][0]).partner_id.vat or ''
|
||||||
|
if string_vat:
|
||||||
|
if country_code=='MX':
|
||||||
|
return '%s' % (string_vat[2:])
|
||||||
|
elif country_code=='VE':
|
||||||
|
return '- %s-%s-%s'%(string_vat[2:3],string_vat[3:11],string_vat[11:12])
|
||||||
|
else:
|
||||||
|
return string_vat
|
||||||
|
else:
|
||||||
|
return _('\nVAT OF COMPANY NOT AVAILABLE')
|
||||||
|
|
||||||
def get_fiscalyear_text(self, form):
|
def get_fiscalyear_text(self, form):
|
||||||
"""
|
"""
|
||||||
Returns the fiscal year text used on the report.
|
Returns the fiscal year text used on the report.
|
||||||
|
@ -250,6 +269,7 @@ class account_balance(report_sxw.rml_parse):
|
||||||
ids2.append([aa_brw.id, True, True, aa_brw])
|
ids2.append([aa_brw.id, True, True, aa_brw])
|
||||||
return ids2
|
return ids2
|
||||||
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# CONTEXT FOR ENDIND BALANCE #
|
# CONTEXT FOR ENDIND BALANCE #
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
Loading…
Reference in New Issue