SST02 response wird jetzt abgefangen
							parent
							
								
									14166f3462
								
							
						
					
					
						commit
						f58b176046
					
				|  | @ -169,7 +169,9 @@ class Partner(models.Model): | ||||||
|                 }) |                 }) | ||||||
|                 portal_url = tools.config.get('portal_url') |                 portal_url = tools.config.get('portal_url') | ||||||
|                 application_id = tools.config.get('portal_secret') |                 application_id = tools.config.get('portal_secret') | ||||||
|                 requests.post(portal_url + '/customer/api/v1/set-discounts/?secret=' + application_id, data=json.dumps(data)) |                 response = requests.post(portal_url + '/api/v1/set-discounts/?secret=' + application_id, data=json.dumps(data)) | ||||||
|  |                 if response.status_code != 200: | ||||||
|  |                     raise ValidationError(_('Rabatt konnte nicht gesetzt werden.')) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class PartnerSector(models.Model): | class PartnerSector(models.Model): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue