project events updated

This commit is contained in:
2024-11-19 12:28:58 +03:00
parent 1e8f5023e8
commit dca3cf90ff
10 changed files with 214 additions and 45 deletions

View File

@@ -267,7 +267,8 @@ class Companies(CrudCollection, SelectAction):
token.selected_company.company_uu_id
)
company_created = cls.find_or_create(**data_dict)
RelationshipDutyCompany.find_or_create(
company_created.save_and_confirm()
company_relationship_created = RelationshipDutyCompany.find_or_create(
owner_id=token.selected_company.company_id,
duties_id=bulk_duties.id,
member_id=company_created.id,
@@ -276,6 +277,7 @@ class Companies(CrudCollection, SelectAction):
relationship_type="Bulk",
show_only=False,
)
company_relationship_created.save_and_confirm()
return company_created
@classmethod