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
96e847ab
Commit
96e847ab
authored
Mar 10, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shift_type added
parent
7ce1951e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
models.py
members/models.py
+1
-1
manage_makeups.js
members/static/js/admin/manage_makeups.js
+13
-0
No files found.
members/models.py
View file @
96e847ab
...
...
@@ -1089,7 +1089,7 @@ class CagetteMembers(models.Model):
def
get_makeups_members
():
api
=
OdooAPI
()
cond
=
[[
'makeups_to_do'
,
'>'
,
0
]]
fields
=
[
'id'
,
'name'
,
'display_std_points'
,
'display_ftop_points'
,
'makeups_to_do'
]
fields
=
[
'id'
,
'name'
,
'display_std_points'
,
'display_ftop_points'
,
'
shift_type'
,
'
makeups_to_do'
]
res
=
api
.
search_read
(
'res.partner'
,
cond
,
fields
)
return
res
...
...
members/static/js/admin/manage_makeups.js
View file @
96e847ab
...
...
@@ -69,6 +69,19 @@ function display_makeups_members() {
title
:
"Nom"
},
{
data
:
"shift_type"
,
title
:
"Type"
,
className
:
"dt-body-center"
,
width
:
"10%"
,
render
:
function
(
data
,
type
,
full
)
{
if
(
data
==
'ftop'
)
{
return
'display_ftop_points'
}
else
if
(
data
==
'standard'
)
{
return
'display_std_points'
}
}
},
{
data
:
"display_std_points"
,
title
:
"Nb points service"
,
className
:
"dt-body-center"
,
...
...
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