Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sapoval_tdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Sapoval
sapoval_tdb
Commits
1cacb2ff
Commit
1cacb2ff
authored
3 years ago
by
Rémi - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] replace this.session.uid by session.uid
parent
88f1cc71
Branches
12.0
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
static/src/js/dashboard_year.js
+8
-9
8 additions, 9 deletions
static/src/js/dashboard_year.js
with
8 additions
and
9 deletions
static/src/js/dashboard_year.js
+
8
−
9
View file @
1cacb2ff
...
...
@@ -34,7 +34,7 @@ odoo.define('sapoval_tdb.dashboard_year', function (require) {
this
.
progess
=
0
;
this
.
annee
=
moment
().
format
(
'
YYYY
'
);
this
.
mois
=
moment
().
format
(
'
MMMM
'
);
this
.
_rpc
({
model
:
'
sapoval.dashboard
'
,
method
:
'
retrieve_datas_dashboard
'
,
...
...
@@ -77,7 +77,7 @@ odoo.define('sapoval_tdb.dashboard_year', function (require) {
/////////////////////////////////////////
// Etat d'avancement -> Bar Chart //
/////////////////////////////////////////
this
.
ctx
=
this
.
$el
.
find
(
'
#target
'
)[
0
].
getContext
(
'
2d
'
);
var
dataset_stacked
=
[
...
...
@@ -93,13 +93,13 @@ odoo.define('sapoval_tdb.dashboard_year', function (require) {
datasets
:
dataset_stacked
};
var
options
=
{
var
options
=
{
legend
:
{
display
:
false
,
position
:
'
bottom
'
,
fullWidth
:
false
,
},
layout
:
{
layout
:
{
padding
:
{
left
:
0
,
right
:
0
,
bottom
:
20
,
top
:
20
,
},
},
scales
:
{
...
...
@@ -120,7 +120,7 @@ odoo.define('sapoval_tdb.dashboard_year', function (require) {
titleFontColor
:
'
#999
'
,
bodyFontColor
:
'
#777
'
,
callbacks
:
{
label
:
function
(
tooltipItems
,
data
)
{
label
:
function
(
tooltipItems
,
data
)
{
return
(
tooltipItems
.
xLabel
/
1000
).
toLocaleString
(
'
fr
'
,
{
maximumFractionDigits
:
2
})
+
'
K€
'
;
}
}
...
...
@@ -154,13 +154,13 @@ odoo.define('sapoval_tdb.dashboard_year', function (require) {
value
=
'
<span class="positive">
'
+
value
.
toLocaleString
(
'
fr
'
,
{
maximumFractionDigits
:
0
})
+
'
€</span>
'
;
else
value
=
'
<span class="negative">
'
+
value
.
toLocaleString
(
'
fr
'
,
{
maximumFractionDigits
:
0
})
+
'
€</span>
'
;
return
value
;
},
facture
:
function
()
{
var
self
=
this
;
var
context
=
{
'
user_id
'
:
this
.
session
.
uid
,
}
var
context
=
{
'
user_id
'
:
session
.
uid
,
}
var
action
=
({
type
:
'
ir.actions.act_window
'
,
...
...
@@ -178,7 +178,7 @@ odoo.define('sapoval_tdb.dashboard_year', function (require) {
},
commandes
:
function
()
{
var
self
=
this
;
var
context
=
{
'
user_id
'
:
this
.
session
.
uid
,
}
var
context
=
{
'
user_id
'
:
session
.
uid
,
}
var
action
=
({
type
:
'
ir.actions.act_window
'
,
...
...
@@ -200,4 +200,3 @@ odoo.define('sapoval_tdb.dashboard_year', function (require) {
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment