Monday, July 15, 2024
1 change · 17.0
Code cleanup and technical improvements
The subscription invoice generation process has been refactored to introduce a new customization hook. This makes it easier for developers to modify how invoices are processed without rewriting the entire function. Businesses can now customize invoice workflows more efficiently, such as keeping auto-generated invoices in draft state before posting.
Original PR description
before this commit, if some customization has to be done for changing the workflow of invoice generation, i.e., to keep the auto generated invoice in draft state the entire function has to be rewritten after this commit, a hook is introduced _process_auto_invoice which will post the invoice, later to alter this flow just need to inherit this function Forward-Port-Of: odoo/enterprise#66200