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

[add] charges fixes dans res_company

parent baa3d6ad
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -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) )
cmd_mois = self.env.cr.fetchone()[0] cmd_mois = self.env.cr.fetchone()[0]
......
...@@ -5,5 +5,5 @@ class res_company(models.Model): ...@@ -5,5 +5,5 @@ class res_company(models.Model):
_name = "res.company" _name = "res.company"
_inherit = "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" ) charges_fixes = fields.Integer( "Charges Fixes" )
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