Skip to content
Extraits de code Groupes Projets
Valider c77461e1 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] button context dashboard UR

parent 22c25574
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -579,6 +579,12 @@ class ScopPartnerDashboardUr(models.Model):
('is_cooperative', '=', True),
('project_status','in',('1_information','2_pre-diagnostic','3_accompagnement','4_adhesion','5_cg','7_abandonne')),
('current_user_ur_id', '=', 'ur_id')],
'context': {
'default_is_company': True,
'default_is_cooperative': True,
'default_company_type': 'company',
'default_project_status': '1_information'
},
}
# ------------------------------------------------------
......@@ -599,6 +605,12 @@ class ScopPartnerDashboardUr(models.Model):
'domain': [
('is_cooperative', '=', True),
('project_status', 'in', ('1_information','2_pre-diagnostic','3_accompagnement','4_adhesion','5_cg','7_abandonne'))],
'context': {
'default_is_company': True,
'default_is_cooperative': True,
'default_company_type': 'company',
'default_project_status': '1_information'
},
}
# ------------------------------------------------------
......@@ -620,6 +632,12 @@ class ScopPartnerDashboardUr(models.Model):
('is_cooperative', '=', True),
('membership_status', '=', 'member'),
('current_user_ur_id', '=', 'ur_id')],
'context': {
'default_is_company': True,
'default_is_cooperative': True,
'default_company_type': 'company',
'create': False,
},
}
# ------------------------------------------------------
......@@ -640,6 +658,12 @@ class ScopPartnerDashboardUr(models.Model):
'domain': [
('is_cooperative', '=', True),
('membership_status', '=', 'member')],
'context': {
'default_is_company': True,
'default_is_cooperative': True,
'default_company_type': 'company',
'create': False,
},
}
# ------------------------------------------------------
......@@ -664,6 +688,12 @@ class ScopPartnerDashboardUr(models.Model):
('membership_status', '=', 'member'),
('current_user_ur_id', '=', 'ur_id'),
('revision_next_year', '=', wyear)],
'context': {
'default_is_company': True,
'default_is_cooperative': True,
'default_company_type': 'company',
'create': False,
},
}
# ------------------------------------------------------
......@@ -688,4 +718,10 @@ class ScopPartnerDashboardUr(models.Model):
('is_cooperative', '=', True),
('membership_status', '=', 'member'),
('current_user_ur_id', '=', 'ur_id')],
'context': {
'default_is_company': True,
'default_is_cooperative': True,
'default_company_type': 'company',
'create': False,
},
}
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter