Sale Order Action Invoice Create Hook
by Contaura LLC
· original work by Eficent, OCA
sale_order_action_invoice_create_hook
$ 29.00
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
- Add dependency of this module
- Inherit from ‘sale.order’
- 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.
- 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 name | sale_order_action_invoice_create_hook |
|---|---|
| Module version | 12.0.1.0.3 |
| Tulio versions | 1.0 |
| Category | Sales |
| Publisher | Contaura LLC
Ported to Tulio, tested and supported by Contaura LLC. |
| Original authors | Eficent, OCA |
| License | LGPL-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 code | 264 |
| Downloads | 0 |
| Released | 12/06/2026 |