Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
C
cgscop_home
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Hervé Silvant - CGScop
cgscop_home
Validations
7e3dee1b
Valider
7e3dee1b
rédigé
2 déc. 2019
par
Benjamin
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
add allday event
parent
5d8b7868
Branches
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
models/cgscop_home.py
+2
-1
2 ajouts, 1 suppression
models/cgscop_home.py
static/src/js/cgscop_home.js
+9
-10
9 ajouts, 10 suppressions
static/src/js/cgscop_home.js
avec
11 ajouts
et
11 suppressions
models/cgscop_home.py
+
2
−
1
Voir le fichier @
7e3dee1b
...
@@ -29,6 +29,7 @@ class ScopHome(models.AbstractModel):
...
@@ -29,6 +29,7 @@ class ScopHome(models.AbstractModel):
self
,
e
.
start
)
if
not
e
.
allday
else
e
.
start_date
,
self
,
e
.
start
)
if
not
e
.
allday
else
e
.
start_date
,
'
end
'
:
fields
.
Datetime
.
context_timestamp
(
'
end
'
:
fields
.
Datetime
.
context_timestamp
(
self
,
e
.
stop
)
if
not
e
.
allday
else
e
.
stop_date
,
self
,
e
.
stop
)
if
not
e
.
allday
else
e
.
stop_date
,
'
allDay
'
:
e
.
allday
},
event_ids
))
},
event_ids
))
# Calcul des activités
# Calcul des activités
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
static/src/js/cgscop_home.js
+
9
−
10
Voir le fichier @
7e3dee1b
...
@@ -35,10 +35,6 @@ odoo.define('cgscop_home.home', function (require) {
...
@@ -35,10 +35,6 @@ odoo.define('cgscop_home.home', function (require) {
},
},
},
},
init
:
function
()
{
var
result
=
this
.
_super
.
apply
(
this
,
arguments
);
return
result
;
},
willStart
:
function
()
{
willStart
:
function
()
{
var
deferred
=
new
jQuery
.
Deferred
();
var
deferred
=
new
jQuery
.
Deferred
();
...
@@ -58,12 +54,15 @@ odoo.define('cgscop_home.home', function (require) {
...
@@ -58,12 +54,15 @@ odoo.define('cgscop_home.home', function (require) {
},
},
start
:
function
()
{
start
:
function
()
{
this
.
_super
();
this
.
calendar
=
this
.
render_calendar
();
this
.
calendar
=
this
.
render_calendar
();
this
.
calendar
.
render
();
this
.
calendar
.
render
();
this
.
calendar
.
updateSize
();
this
.
calendar
.
refetchEvents
();
console
.
log
(
this
.
$el
.
find
(
'
#calendar-container
'
));
setTimeout
(
this
.
calendar
.
updateSize
(),
1000
);
console
.
log
(
this
.
$el
.
find
(
'
#calendar-container
'
)[
0
]);
setTimeout
(
console
.
log
(
"
Salut 1000
"
),
1000
);
setTimeout
(
console
.
log
(
"
Salut 2000
"
),
2000
);
setTimeout
(
console
.
log
(
"
Salut 3000
"
),
3000
);
setTimeout
(
console
.
log
(
"
Salut 100000
"
),
100000
);
// return this._super.apply(this, arguments)
},
},
render_calendar
:
function
()
{
render_calendar
:
function
()
{
self
=
this
self
=
this
...
@@ -71,7 +70,7 @@ odoo.define('cgscop_home.home', function (require) {
...
@@ -71,7 +70,7 @@ odoo.define('cgscop_home.home', function (require) {
var
calendar
=
new
FullCalendar
.
Calendar
(
calendarEl
,
{
var
calendar
=
new
FullCalendar
.
Calendar
(
calendarEl
,
{
themeSystem
:
'
bootstrap
'
,
themeSystem
:
'
bootstrap
'
,
plugins
:
[
'
bootstrap
'
,
'
dayGrid
'
,
'
timeGrid
'
,
'
monthGrid
'
,
'
list
'
],
plugins
:
[
'
bootstrap
'
,
'
dayGrid
'
,
'
timeGrid
'
,
'
list
'
],
defaultView
:
'
timeGridWeek
'
,
defaultView
:
'
timeGridWeek
'
,
minTime
:
'
07:00:00
'
,
minTime
:
'
07:00:00
'
,
maxTime
:
'
21:00:00
'
,
maxTime
:
'
21:00:00
'
,
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter