Browse Source

[FIX] fix state code

pull/1/head
houssine 6 years ago
parent
commit
594fad1ec5
  1. 2
      easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

2
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) tax_shelter_mail_template.send_mail_with_multiple_attachments(certificate.id, attachments,True)
certificate.state = 'sent' certificate.state = 'sent'
else: else:
certificate.state = 'non_eligible'
certificate.state = 'no_eligible'
self.env.cr.commit() self.env.cr.commit()
@api.multi @api.multi

Loading…
Cancel
Save