Skip to content

Commit

Permalink
Travis errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fekete Mihai committed Nov 27, 2017
1 parent 461a12e commit 58cd014
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions l10n_ro_partner_create_by_vat/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 2015 Forest and Biomass Romania
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

import requests
import logging
import requests

from odoo import api, fields, models

Expand Down Expand Up @@ -72,9 +72,6 @@ def _Anaf_to_Odoo(self, result):
lines = [x for x in result['adresa'].replace(
'NR,', 'NR.').split(",") if x]
nostreet = True
listabr = ['JUD.', 'MUN.', 'ORŞ.', 'COM.', ' SAT ',
'STR.', 'ALEEA', 'CAL.', 'INTR.', 'BD-UL',
'ZONA', 'CORP', 'NR.', 'ET.', 'AP.']
strlistabr = ['STR.', 'ALEEA', 'CAL.', 'INTR.', 'BD-UL']
for line in lines:
if any([x in line for x in strlistabr]):
Expand Down Expand Up @@ -126,8 +123,6 @@ def vies_vat_change(self):
if res:
res['country_id'] = self.env['res.country'].search(
[('code', 'ilike', vat_country)])[0].id
langro = self.env['res.lang'].search(
[('code', '=', 'ro_RO')])
partner.update(res)
except:
super(ResPartner, partner).vies_vat_change()

0 comments on commit 58cd014

Please sign in to comment.