Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cgscop_partner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Confédération Générale des SCOP
cgscop_partner
Commits
42eb97ad
Commit
42eb97ad
authored
1 year ago
by
Benjamin - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[UPD] delete check_staff_average check
parent
9c3822e8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/scop_partner_staff.py
+0
-12
0 additions, 12 deletions
models/scop_partner_staff.py
with
0 additions
and
12 deletions
models/scop_partner_staff.py
+
0
−
12
View file @
42eb97ad
...
...
@@ -160,22 +160,11 @@ class ScopPartnerStaff(models.Model):
)
)
def
check_staff_average
():
if
self
.
staff_average
>
0
:
if
not
self
.
staff_count
>=
self
.
staff_average
:
raise
ValidationError
(
_
(
"
L
'
effectif total doit être supérieur ou égal au
"
"
nombre d
'
équivalent temps plein
"
)
)
# Les règles ne s'appliquent pas pour les entrées LM / Questionnaire
if
self
.
type_entry
not
in
(
"
questionnaire
"
,
"
questionnaire_inscription
"
):
# Règles pour les SCIC
if
self
.
cooperative_form_id
.
id
==
scic
:
check_staff_shareholder
()
check_staff_average
()
# Règles pour les SCOP
elif
self
.
cooperative_form_id
.
id
==
scop
:
# Effectif total non nul
...
...
@@ -187,7 +176,6 @@ class ScopPartnerStaff(models.Model):
)
)
check_staff_shareholder
()
check_staff_average
()
# Règles sprécifiques pour les NAF suivis
if
self
.
is_partner_in_tracked_naf
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment