Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
f4187284
Commit
f4187284
authored
Oct 16, 2024
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout changement statut suite validation souscription
parent
f2d6ab89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
__init__.py
lacagette_addons/lacagette_membership/models/__init__.py
+1
-0
shift_template_registration.py
...acagette_membership/models/shift_template_registration.py
+19
-0
No files found.
lacagette_addons/lacagette_membership/models/__init__.py
View file @
f4187284
...
@@ -7,4 +7,5 @@ from . import shift_shift
...
@@ -7,4 +7,5 @@ from . import shift_shift
from
.
import
member_state_change
from
.
import
member_state_change
from
.
import
shift_template
from
.
import
shift_template
from
.
import
shift_template_registration_line
from
.
import
shift_template_registration_line
from
.
import
shift_template_registration
from
.
import
shift_extension
from
.
import
shift_extension
lacagette_addons/lacagette_membership/models/shift_template_registration.py
0 → 100644
View file @
f4187284
# -*- coding: utf-8 -*-
from
openerp
import
api
,
models
import
logging
_logger
=
logging
.
getLogger
(
__name__
)
class
ShiftTemplateRegistration
(
models
.
Model
):
_inherit
=
'shift.template.registration'
@api.model
def
create
(
self
,
vals
):
super_res
=
super
(
ShiftTemplateRegistration
,
self
.
with_context
(
dict
(
self
.
env
.
context
,
**
{
'creation_in_progress'
:
True
})))
.
create
(
vals
)
if
'partner_id'
in
vals
:
member
=
self
.
env
[
'res.partner'
]
.
search
([(
'id'
,
'='
,
vals
[
'partner_id'
])])
member
.
recompute_member_states
()
return
super_res
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment