comment envoyer des email from button submit in odoo 14
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1451
Vistas
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
jun 24
|
3888 | ||
|
2
nov 23
|
3102 | ||
|
2
feb 21
|
2365 | ||
|
1
jul 25
|
2266 | ||
|
2
jul 25
|
7746 |
def action_validate(self):
if len(self.loan_line_ids)<=0:
raise ValidationError(
_("Rien a Validé"))
self.env['extra.loan.approver'].create({
'loan_id': self.id,
'user_id': self.env.uid, 'date_approved': fields.Datetime.now(), 'state': 'approved'})
mail_template = self.env.ref('extra_rh.extra_loan_valid')
mail_template.send_mail(self.id, force_send=True)
self.write({'state':'approve'})