From 594fad1ec59ba99a7dd9f233fc70ea3fc07c2241 Mon Sep 17 00:00:00 2001 From: houssine Date: Wed, 27 Mar 2019 00:14:09 +0100 Subject: [PATCH] [FIX] fix state code --- .../models/tax_shelter_declaration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py b/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py index 4db2c8c..774a38a 100644 --- a/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py +++ b/easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py @@ -235,7 +235,7 @@ class TaxShelterCertificate(models.Model): tax_shelter_mail_template.send_mail_with_multiple_attachments(certificate.id, attachments,True) certificate.state = 'sent' else: - certificate.state = 'non_eligible' + certificate.state = 'no_eligible' self.env.cr.commit() @api.multi