Browse Source

[IMP][account_financial_report] Improvement function get_vat_by_country

pull/7/merge
Jorge Angel Naranjo Rogel 11 years ago
parent
commit
d50ef4ef0b
  1. 2
      account_financial_report/report/parser.py

2
account_financial_report/report/parser.py

@ -69,7 +69,7 @@ class account_balance(report_sxw.rml_parse):
Return the vat of the partner by country Return the vat of the partner by country
""" """
rc_obj = self.pool.get('res.company') 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
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 '' string_vat= rc_obj.browse(self.cr, self.uid, form['company_id'][0]).partner_id.vat or ''
if string_vat: if string_vat:
if country_code=='MX': if country_code=='MX':

Loading…
Cancel
Save