Skip to content
Extraits de code Groupes Projets
Valider 2da775e3 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[debug] remove debug

parent a8daeab2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -22,8 +22,6 @@ class ScopPartner(models.Model): ...@@ -22,8 +22,6 @@ class ScopPartner(models.Model):
quarter_start = date(today.year, 3 * ((today.month - 1) // 3 + 1) - 2, 1) quarter_start = date(today.year, 3 * ((today.month - 1) // 3 + 1) - 2, 1)
end_date = quarter_start - relativedelta(months=3, days=1) end_date = quarter_start - relativedelta(months=3, days=1)
start_date = quarter_start - relativedelta(months=27) start_date = quarter_start - relativedelta(months=27)
print(end_date)
print(start_date)
for r in self: for r in self:
if r.type == 'facility' and r.parent_id: if r.type == 'facility' and r.parent_id:
r.is_a_jour_bool = r.parent_id.is_a_jour_bool r.is_a_jour_bool = r.parent_id.is_a_jour_bool
...@@ -64,8 +62,6 @@ class ScopPartner(models.Model): ...@@ -64,8 +62,6 @@ class ScopPartner(models.Model):
self.env.ref('cgscop_partner.riga_14397').id, self.env.ref('cgscop_partner.riga_14397').id,
start_date, end_date)) start_date, end_date))
print(query_a_jour)
self.env.cr.execute(query_a_jour) self.env.cr.execute(query_a_jour)
is_a_jour_bool = self.env.cr.fetchall()[0][0] is_a_jour_bool = self.env.cr.fetchall()[0][0]
print(is_a_jour_bool)
r.is_a_jour_bool = True if is_a_jour_bool == 1 else False r.is_a_jour_bool = True if is_a_jour_bool == 1 else False
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