Skip to content
Extraits de code Groupes Projets
Valider 9bbc42cf rédigé par Benjamin's avatar Benjamin
Parcourir les fichiers

add cca

parent 25affb32
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -194,7 +194,7 @@ class LeFilamentTdb(models.Model): ...@@ -194,7 +194,7 @@ class LeFilamentTdb(models.Model):
sum(es.total_amount) as cca sum(es.total_amount) as cca
from hr_expense_sheet es, hr_expense e from hr_expense_sheet es, hr_expense e
where es.id = e.sheet_id and e.payment_mode='own_account' and es.state!='done';""") where es.id = e.sheet_id and e.payment_mode='own_account' and es.state!='done';""")
cca = self._cr.dictfetchall() cca = self._cr.fetchone()[0]
return { 'tresorerie': tresorerie, 'cca': cca } return { 'tresorerie': tresorerie, 'cca': cca }
...@@ -73,6 +73,7 @@ odoo.define('lefilament_tdb.tresorerie', function (require) { ...@@ -73,6 +73,7 @@ odoo.define('lefilament_tdb.tresorerie', function (require) {
labels.push(moment(this.values.tresorerie[i].mois).format('MMM YYYY')); labels.push(moment(this.values.tresorerie[i].mois).format('MMM YYYY'));
} }
console.log(this.values);
var datasets = [ var datasets = [
{ label: 'Trésorerie', data: treso.slice(tabLength-11, tabLength+1), backgroundColor: 'transparent',borderColor: '#5E8ED5' }, { label: 'Trésorerie', data: treso.slice(tabLength-11, tabLength+1), backgroundColor: 'transparent',borderColor: '#5E8ED5' },
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter