Odoo Help

0

Automatic email on invoice validation

By
Justin Allen
on 7/23/16, 11:12 AM 484 views

  How can I setup an automated action to email an invoice once it is validated?  I have tried on creation,  but that tries to send the email as soon as the invoice is created and before it is validated resulting in a $0 invoice being sent.  

0
Vo Tri
On 8/4/16, 6:19 AM

Hello, 

When validated Invoice, system was create account_move -> account_move_line. You want Automatic email on invoice validation, you write in post function in account move.

 class AccountMove(models.Model):

_inherit = 'account.move'


@api.multi

def post(self):

res = super(AccountMove, self).post()

// You write function send mail

return res

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/23/16, 11:12 AM
Seen: 484 times
Last updated: 8/4/16, 6:19 AM