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
563a1208
Commit
563a1208
authored
Sep 07, 2022
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add param to show or not 'gestion des binômes' in members admin
parent
58fea6af
Pipeline
#2356
passed with stage
in 1 minute 27 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
admin.py
members/admin.py
+2
-1
config.md
outils/config.md
+4
-0
views.py
outils/views.py
+1
-1
index.html
templates/members/admin/index.html
+2
-0
No files found.
members/admin.py
View file @
563a1208
...
...
@@ -313,7 +313,8 @@ def admin(request):
""" Administration des membres """
template
=
loader
.
get_template
(
'members/admin/index.html'
)
context
=
{
'title'
:
'BDM'
,
'module'
:
'Membres'
}
'module'
:
'Membres'
,
'admin_binome_active'
:
getattr
(
settings
,
'ADMIN_BINOME_ACTIVE'
,
True
),}
return
HttpResponse
(
template
.
render
(
context
,
request
))
def
manage_makeups
(
request
):
...
...
outils/config.md
View file @
563a1208
...
...
@@ -419,6 +419,10 @@
If True, in BDM Admin manage shift template, on the calendar when subscribing a partner to a shift, "Volant" button is included
-
ADMIN_BINOME_ACTIVE = False
By defaut, True. Show "Gestion des binômes" in bdm admin
### Miscellious
-
EXPORT_COMPTA_FORMAT = 'Quadratus'
...
...
outils/views.py
View file @
563a1208
...
...
@@ -88,7 +88,7 @@ class FieldsView(View):
u"""Nous allons retourner les attributs Odoo correspondants."""
entity
=
request
.
POST
.
get
(
"entity"
,
""
)
fields
=
[]
if
len
(
entity
)
>
1
:
if
getattr
(
settings
,
'APP_ENV'
,
"prod"
)
==
"dev"
and
len
(
entity
)
>
1
:
api
=
OdooAPI
()
fields
=
api
.
get_entity_fields
(
entity
)
template
=
loader
.
get_template
(
'common/entity_fields.html'
)
...
...
templates/members/admin/index.html
View file @
563a1208
...
...
@@ -29,10 +29,12 @@
Gestion des présences
<span
class=
"management_type_button_icons"
><i
class=
"fas fa-arrow-right"
></i></span>
</button><br>
{% if admin_binome_active %}
<button
type=
"button"
class=
"btn--primary management_type_button"
id=
"manage_attached_button"
>
Gestion des binômes
<span
class=
"management_type_button_icons"
><i
class=
"fas fa-arrow-right"
></i></span>
</button><br>
{% endif %}
<button
type=
"button"
class=
"btn--primary management_type_button"
id=
"manage_regular_shifts_button"
>
Gestion des créneaux
<span
class=
"management_type_button_icons"
><i
class=
"fas fa-arrow-right"
></i></span>
...
...
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