Validate invoice automatically
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':
Are there any option to validate invoices on creation?