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
366a1416
Commit
366a1416
authored
Mar 10, 2022
by
Etienne Freiss
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2387-member-points' into 'dev_cooperatic'
2387 member points See merge request
!142
parents
76c6252c
3f56c19b
Pipeline
#1923
passed with stage
in 1 minute 27 seconds
Changes
2
Pipelines
1
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 @
366a1416
...
...
@@ -1146,7 +1146,7 @@ class CagetteMembers(models.Model):
def
get_makeups_members
():
api
=
OdooAPI
()
cond
=
[[
'makeups_to_do'
,
'>'
,
0
]]
fields
=
[
'id'
,
'name'
,
'
makeups_to_do'
,
'shift_type
'
]
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 @
366a1416
...
...
@@ -69,6 +69,19 @@ function display_makeups_members() {
title
:
"Nom"
},
{
data
:
"shift_type"
,
title
:
"Nb de points"
,
className
:
"dt-body-center"
,
width
:
"10%"
,
render
:
function
(
data
,
type
,
row
)
{
if
(
data
==
'ftop'
)
{
return
row
.
display_ftop_points
}
else
if
(
data
==
'standard'
)
{
return
row
.
display_std_points
}
}
},
{
data
:
"makeups_to_do"
,
title
:
"Nb rattrapages"
,
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