Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
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
2
Merge Requests
2
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
third-party
Commits
1c6a58c9
Commit
1c6a58c9
authored
Sep 08, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error if odoo lacagette membership is not installed
parent
563a1208
Pipeline
#2358
passed with stage
in 1 minute 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
models.py
shifts/models.py
+6
-1
No files found.
shifts/models.py
View file @
1c6a58c9
...
@@ -373,7 +373,12 @@ class CagetteShift(models.Model):
...
@@ -373,7 +373,12 @@ class CagetteShift(models.Model):
def
member_can_have_delay
(
self
,
partner_id
):
def
member_can_have_delay
(
self
,
partner_id
):
""" Can a member have a delay? """
""" Can a member have a delay? """
return
self
.
o_api
.
execute
(
'res.partner'
,
'can_have_extension'
,
[
partner_id
])
answer
=
False
try
:
answer
=
self
.
o_api
.
execute
(
'res.partner'
,
'can_have_extension'
,
[
partner_id
])
except
Exception
as
e
:
coop_logger
.
error
(
"member_can_have_delay :
%
s"
,
str
(
e
))
return
answer
def
update_counter_event
(
self
,
fields
):
def
update_counter_event
(
self
,
fields
):
""" Add/remove points """
""" Add/remove points """
...
...
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