In some flow like subscription, invoices are sent by mail automatically to the customer. Sometimes, the invoice must be approved by the government before sending the mail like the Mexican EDI. This commit aims to add a custom method to detect when an invoice is ready to be sent to the customer. PR (community): https://github.com/odoo/odoo/pull/78714 PR (enterprise): https://github.com/odoo/enterprise/pull/21809 closes odoo/odoo#79504 X-original-commit: 3a29371eb70309f46e3b8938434287fefc23b351 Related: odoo/enterprise#22171 Signed-off-by: William André (wan) <wan@odoo.com>