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
3abace58
Commit
3abace58
authored
5 years ago
by
Hervé Silvant - CGScop
Browse files
Options
Downloads
Patches
Plain Diff
Radiation automatique si décès de la société
parent
1cbcb6e2
Branches
Branches containing commit
No related tags found
3 merge requests
!4
12.0 rv ajout champ et reorg contact
,
!2
Radiation automatique si décès de la société
,
!1
12.0 rv consentement defaut
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
datas/scop_membership_reason_end_data.xml
+5
-0
5 additions, 0 deletions
datas/scop_membership_reason_end_data.xml
wizard/scop_deces_wizard.py
+19
-0
19 additions, 0 deletions
wizard/scop_deces_wizard.py
with
24 additions
and
0 deletions
datas/scop_membership_reason_end_data.xml
+
5
−
0
View file @
3abace58
...
...
@@ -16,5 +16,10 @@
<record
id=
"reason_end_membership_4"
model=
"scop.membership.reason.end"
>
<field
name=
"name"
>
Radiation demandée par le mouvement
</field>
</record>
<record
id=
"reason_end_membership_5"
model=
"scop.membership.reason.end"
>
<field
name=
"name"
>
Mort économique
</field>
</record>
</data>
</odoo>
This diff is collapsed.
Click to expand it.
wizard/scop_deces_wizard.py
+
19
−
0
View file @
3abace58
...
...
@@ -62,6 +62,25 @@ class ScopDecesWizard(models.TransientModel):
'
dissolution_date
'
:
period
.
end
,
'
dissolution_reason_id
'
:
period
.
dissolution_reason_id
.
id
})
#.........................................
# HS 08/04/2020
# On procède à la radiation à la même date
#..........................................
# Lecture du motif de radiation type décès
motif
=
self
.
env
[
'
scop.membership.reason.end
'
].
search
([
(
'
name
'
,
'
=
'
,
'
Mort économique
'
)],
limit
=
1
)
# Mise à jour des périodes d'adhésions
if
motif
:
adh_period
=
self
.
env
[
'
scop.membership.period
'
].
search
(
[(
'
partner_id
'
,
'
=
'
,
period
.
partner_id
),
(
'
end
'
,
'
=
'
,
False
)])
for
adh
in
adh_period
:
adh
.
write
({
'
end
'
:
period
.
end
,
'
end_reason_id
'
:
motif
.
id
})
else
:
raise
ValidationError
(
"
Il n
'
existe pas de période à fermer.
"
)
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