Odoo Help

Welcome!

This community 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.

0

Automatic email on invoice validation

By
Justin Allen
on 7/23/16, 11:12 AM 243 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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