Skip to content

Conversation

@krutoy-chuvak
Copy link

Навайбкодил вот такую штуку. Тестил по-разному, у меня всё работает. Если есть более элегантное решение – предлагайте :)


from amocrm.v2.entity import custom_field

class Company(_Company):
    legal = custom_field.LegalEntityCustomField("Юр. лицо")

company = Company.objects.get(object_id=00000000)

print(company.legal[0].name)

company.legal[0].name = "New legal name"
company.save()
print(company.legal[0].name)```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant