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

fix erreur cca sur treso

parent 572e8603
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -212,7 +212,7 @@ class LeFilamentTdb(models.Model): ...@@ -212,7 +212,7 @@ class LeFilamentTdb(models.Model):
tresorerie = self._cr.dictfetchall() tresorerie = self._cr.dictfetchall()
self._cr.execute("""SELECT self._cr.execute("""SELECT
(select sum(es.total_amount) as fonds_propres from hr_expense_sheet es, hr_expense e where es.id = e.sheet_id and e.payment_mode='own_account' and es.state!='done') as cca, (select sum(e.total_amount) as fonds_propres from hr_expense_sheet es, hr_expense e where es.id = e.sheet_id and e.payment_mode='own_account' and es.state!='done') as cca,
(select sum(capital) as capital from hr_employee) as capital;""") (select sum(capital) as capital from hr_employee) as capital;""")
fonds_propres = self._cr.dictfetchall()[0] fonds_propres = self._cr.dictfetchall()[0]
...@@ -231,7 +231,7 @@ class LeFilamentTdb(models.Model): ...@@ -231,7 +231,7 @@ class LeFilamentTdb(models.Model):
tresorerie = self._cr.dictfetchall() tresorerie = self._cr.dictfetchall()
self._cr.execute("""SELECT self._cr.execute("""SELECT
(select sum(es.total_amount) as fonds_propres from hr_expense_sheet es, hr_expense e where es.id = e.sheet_id and e.payment_mode='own_account' and es.state!='done') as cca, (select sum(e.total_amount) as fonds_propres from hr_expense_sheet es, hr_expense e where es.id = e.sheet_id and e.payment_mode='own_account' and es.state!='done') as cca,
(select sum(capital) as capital from hr_employee) as capital;""") (select sum(capital) as capital from hr_employee) as capital;""")
fonds_propres = self._cr.dictfetchall()[0] fonds_propres = self._cr.dictfetchall()[0]
......
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