|
@ -182,7 +182,7 @@ class TaxShelterCertificate(models.Model): |
|
|
|
|
|
|
|
|
@api.model |
|
|
@api.model |
|
|
def batch_send_tax_shelter_certificate(self): |
|
|
def batch_send_tax_shelter_certificate(self): |
|
|
certificates = self.search([('state','=','validated')],limit=40) |
|
|
|
|
|
|
|
|
certificates = self.search([('state','=','validated')],limit=80) |
|
|
for certificate in certificates: |
|
|
for certificate in certificates: |
|
|
certificate.send_certificates() |
|
|
certificate.send_certificates() |
|
|
certificate.state = 'sent' |
|
|
certificate.state = 'sent' |
|
|