project book event

This commit is contained in:
2024-11-18 14:12:07 +03:00
parent b4dc24cf50
commit 7bc16e02d1
14 changed files with 224 additions and 36 deletions

View File

@@ -137,11 +137,53 @@ def create_occupant_types_defaults():
"occupant_category_type": "BU",
"occupant_is_unique": False,
},
{
"occupant_type": "Proje Lideri",
"occupant_description": "Proje Lideri",
"occupant_code": "PRJ-LDR",
"occupant_category": "Proje",
"occupant_category_type": "PRJ",
"occupant_is_unique": False,
},
{
"occupant_type": "Proje Sorumlusu",
"occupant_description": "Proje Sorumlusu",
"occupant_code": "PRJ-RES",
"occupant_category": "Proje",
"occupant_category_type": "PRJ",
"occupant_is_unique": False,
},
{
"occupant_type": "Proje Ekibi",
"occupant_description": "Proje Ekibi",
"occupant_code": "PRJ-EMP",
"occupant_category": "Proje",
"occupant_category_type": "PRJ",
"occupant_is_unique": False,
},
{
"occupant_type": "Proje Finans Sorumlusu",
"occupant_description": "Proje Finans Sorumlusu",
"occupant_code": "PRJ-FIN",
"occupant_category": "Proje",
"occupant_category_type": "PRJ",
"occupant_is_unique": False,
},
{
"occupant_type": "Proje Teknik Sorumlusu",
"occupant_description": "Proje Teknik Sorumlusu",
"occupant_code": "PRJ-TEC",
"occupant_category": "Proje",
"occupant_category_type": "PRJ",
"occupant_is_unique": False,
},
]
for list_occupant_type in list_occupant_types:
created_type = OccupantTypes.find_or_create(**list_occupant_type)
created_type.save_and_confirm()
try:
created_type = OccupantTypes.find_or_create(**list_occupant_type)
created_type.save_and_confirm()
except Exception as e:
print(f"Error: {e}")
def create_application_defaults():

View File

@@ -217,26 +217,6 @@ def init_api_enums_build_types():
"type_code": "DT-Z",
"type_name": "Zero Balance",
},
{
"enum_class": "ProjectTeamTypes",
"type_code": "PTT-LDR",
"type_name": "Project Leader",
},
{
"enum_class": "ProjectTeamTypes",
"type_code": "PTT-RSP",
"type_name": "Project Responsible",
},
{
"enum_class": "ProjectTeamTypes",
"type_code": "PTT-EMP",
"type_name": "Project Employee",
},
{
"enum_class": "ProjectTeamTypes",
"type_code": "PTT-FIN",
"type_name": "Project Finance Responsible",
},
]
for insert_enum in insert_enums:
created_api_enum = ApiEnumDropdown.find_or_create(