Daily updates from Odoo
Tuesday, June 12, 2018
1 change
New functionality added to Odoo
Sales invoicing can now be customized so related sales orders are grouped into invoices using additional business rules when needed. The change also allows new invoices to be combined with existing draft invoices, helping reduce duplicate invoice drafts and support more tailored billing workflows.
Original PR description
Description of the issue/feature this PR addresses: This PR allows to add flexibility to the logic to group sales orders when the invoice is created. - With the new method '_get_invoice_group_key'…
Description of the issue/feature this PR addresses: This PR allows to add flexibility to the logic to group sales orders when the invoice is created. - With the new method '_get_invoice_group_key' other modules can change the key fields that will be used to group sales orders into a single invoice. - With the new method '_get_draft_invoices' other modules can change this method in order to merge new invoices with existing draft ones. Even the code was changed a bit, the logic of this method is 100% respected. Current behavior before PR: - Only fields invoice_partner_id and currency_id are being considered as the grouping key. - No draft invoice is considered when creating new invoices. Desired behavior after PR is merged: - The grouping key can be extended by other modules, if needed. - New invoices can be merged to existing draft ones automatically when creating them. @etobella @jbeficent @mreficent -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr