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
- Contabilitate
- Inventar
- PoS
- Project
- MRP
Această întrebare a fost marcată
1450
Vizualizări
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
2
iun. 24
|
3885 | ||
|
2
nov. 23
|
3099 | ||
|
2
feb. 21
|
2362 | ||
|
1
iul. 25
|
2251 | ||
|
2
iul. 25
|
7739 |
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'})