diff --git a/models/partner_dashboard_ur.py b/models/partner_dashboard_ur.py index f03008b5fafd41e02c165e5f233b591968ece5bf..579c215927cbcd3074a52ba62fc2e28a18875e5c 100644 --- a/models/partner_dashboard_ur.py +++ b/models/partner_dashboard_ur.py @@ -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