fix for Python 3.7 (base_vat_autocomplete)
							parent
							
								
									894eec0830
								
							
						
					
					
						commit
						f68aad6173
					
				|  | @ -49,7 +49,7 @@ class ResPartner(models.Model): | ||||||
|             non_set_address_fields = set(['street', 'street2', 'city', 'zip', 'state_id', 'country_id']) |             non_set_address_fields = set(['street', 'street2', 'city', 'zip', 'state_id', 'country_id']) | ||||||
|             if not partner.vat: |             if not partner.vat: | ||||||
|                 return {} |                 return {} | ||||||
|             if len(partner.vat) > 5 and partner.vat[:2].lower() in stdnum_vat.country_codes: |             if len(partner.vat) > 5 and partner.vat[:2].lower() in stdnum_vat._country_codes: | ||||||
|                 # Equivalent to stdnum_vat.check_vies(partner.vat). |                 # Equivalent to stdnum_vat.check_vies(partner.vat). | ||||||
|                 # However, we want to add a custom timeout to the suds.client |                 # However, we want to add a custom timeout to the suds.client | ||||||
|                 # because by default, it's 120 seconds and this is to long. |                 # because by default, it's 120 seconds and this is to long. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue