@@ -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;""")