@@ -41,7 +41,7 @@ class LeFilamentTdb(models.Model):
...
@@ -41,7 +41,7 @@ class LeFilamentTdb(models.Model):
############## COMMANDES ################
############## COMMANDES ################
# TOTAL
# TOTAL
self.env.cr.execute("select sum(amount_untaxed) from sale_order where invoice_status!='no' and date_order >= date_trunc('month', %s) and date_order < date_trunc('month', %s + interval '1' month);",(date_tdb,date_tdb))
self.env.cr.execute("select sum(amount_untaxed) from sale_order where invoice_status='to invoice' and date_order >= date_trunc('month', %s) and date_order < date_trunc('month', %s + interval '1' month);",(date_tdb,date_tdb))