diff --git a/models/lefilament_tdb.py b/models/lefilament_tdb.py index cb125a80642c4d8f745786c0fabb5a41c0357c63..06547417fc23fdaa70193fc99a6fd440a9941428 100644 --- a/models/lefilament_tdb.py +++ b/models/lefilament_tdb.py @@ -41,7 +41,7 @@ class LeFilamentTdb(models.Model): ############## COMMANDES ################ # 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) ) cmd_mois = self.env.cr.fetchone()[0] diff --git a/models/res_company.py b/models/res_company.py index ddd1b49908895e68319b38075aa0bdeaa322968d..e535daab588e9fc0a4699774094568598c001fee 100644 --- a/models/res_company.py +++ b/models/res_company.py @@ -5,5 +5,5 @@ class res_company(models.Model): _name = "res.company" _inherit = "res.company" - ca_target = fields.Integer( "Objectif de Chiffre d'Affaire" ) + ca_target = fields.Integer( "Objectif Chiffre d'Affaire" ) charges_fixes = fields.Integer( "Charges Fixes" )