Hi! I need to validate invoice automatically to send to my clients in Odoo 9. I used Automated Actions to validate Contract invoices using this code, but it's not working:
if context and context.get('default_type') and context['default_type']=='contract':
object.signal_workflow('invoice_open')
Are there any option to validate invoices on creation?