I haven't been able to find a way to automate finance charges in Odoo and I was looking to create an automated action to create a new invoice line or create a new invoice for my finance charge. For example, if an invoice isn't paid 5 days after its due date, I want to create a new invoice that is 2% of the invoice that is past due. What is the python expression I need to be able to do this in an automated action?
Here is the screengrab of the automated action I have so far: https://imgur.com/a/CLdy9KP