Sale Order Action Invoice Create Hook

Sale Order Action Invoice Create Hook

by Contaura LLC · original work by Eficent, OCA
sale_order_action_invoice_create_hook
$ 29.00

Add more flexibility in the grouping parameters for the creation of invoices

1.0

One purchase covers every version. Already bought it? Sign in.

Sale Order Action Invoice Create Hook

This module adds hook points in sale_order.action_invoice_create() in order to add more flexibility in the grouping parameters for the creation of invoices and to give the possibility to take into account draft invoices.

Although the original code has been modified a bit, the logic has been respected and the method still does exactly the same.

Table of contents

Usage

  1. Add dependency of this module
  2. Inherit from ‘sale.order’
  3. Change the _get_invoice_group_key function in order to return more grouping fields to take into account when creating a single invoice from various Sales Orders.
  4. Change the _get_draft_invoices function in order to take into account existing draft invoices when creating new ones. This feature is already implemented in the module sale_merge_draft_invoice.
Technical namesale_order_action_invoice_create_hook
Module version12.0.1.0.3
Tulio versions1.0
CategorySales
PublisherContaura LLC
Ported to Tulio, tested and supported by Contaura LLC.
Original authorsEficent, OCA
LicenseLGPL-3
Open source: you may use, change and share this module under its license. The price covers the Tulio port, its testing on Tulio 1.0 and the download.
Requires (Tulio core)sale
Lines of code264
Downloads0
Released12/06/2026
12.0.1.0.3 Tulio 1.0 · 12/06/2026