Add permission for treasurers to update the validation status of a transaction

This commit is contained in:
Yohann D'ANELLO 2020-07-13 12:10:01 +02:00
parent 2c7995a79e
commit 71f6daf0e8
1 changed files with 18 additions and 1 deletions

View File

@ -2200,6 +2200,22 @@
"description": "View my past activities"
}
},
{
"model": "permission.permission",
"pk": 127,
"fields": {
"model": [
"note",
"transaction"
],
"query": "[\"AND\", [\"OR\", {\"source\": [\"club\", \"note\"]}, {\"destination\": [\"club\", \"note\"]}], [\"OR\", {\"amount__lte\": {\"F\": [\"ADD\", [\"F\", \"source__balance\"], 5000]}}, {\"valid\": true}]]",
"type": "change",
"mask": 1,
"field": "valid",
"permanent": false,
"description": "Update validation status of a club transaction if possible"
}
},
{
"model": "permission.rolepermissions",
"pk": 1,
@ -2287,7 +2303,8 @@
27,
60,
61,
62
62,
127
]
}
},