Skip to content
Snippets Groups Projects
Commit dafddaf8 authored by Daniil Digtyar Vasilieva's avatar Daniil Digtyar Vasilieva :call_me:
Browse files

FIX BUG company_id not fount in create

parent 1784cc21
No related branches found
No related tags found
2 merge requests!86Fix partners company,!68FIX BUG company_id not fount in create subcription request
Pipeline #21808 passed
......@@ -29,9 +29,12 @@ class SubscriptionRequest(models.Model):
def create(self, vals):
if vals:
vals['skip_iban_control'] = True
# Somewhere the company_id is assigned as string
# Can't find where, this is a workaround
# Somewhere the company_id is assigned as string
# Can't find where, this is a workaround
if 'company_id' in vals:
vals['company_id'] = int(vals['company_id'])
if 'country_id' in vals:
vals['country_id'] = int(vals['country_id'])
subscription_request = super(SubscriptionRequest, self).create(vals)
return subscription_request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment