Commit 96e847ab by Félicie

shift_type added

parent 7ce1951e
......@@ -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
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment