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.
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.
_inherit = 'account.move'
res = super(AccountMove, self).post()
// You write function send mail
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
|Asked: 7/23/16, 11:12 AM|
|Seen: 247 times|
|Last updated: 8/4/16, 6:19 AM|