diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-23 11:08:47 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-23 11:08:47 +0700 |
| commit | 24c863b30575eca63efe245b4b25c92e1ce3f4d6 (patch) | |
| tree | 61ade1c16d67bcb4bb53512a1350e14c933f342e /fixco_custom/models/sale_order_multi_invoices.py | |
| parent | 175b10a298185a724b7c0f8d0d25beec38b4f0e1 (diff) | |
| parent | aeeecacfe7b10ebbdefe5284f98e9e9f37c1b8d1 (diff) | |
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons
merge
Diffstat (limited to 'fixco_custom/models/sale_order_multi_invoices.py')
| -rw-r--r-- | fixco_custom/models/sale_order_multi_invoices.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fixco_custom/models/sale_order_multi_invoices.py b/fixco_custom/models/sale_order_multi_invoices.py index 2638ddc..5c42dc6 100644 --- a/fixco_custom/models/sale_order_multi_invoices.py +++ b/fixco_custom/models/sale_order_multi_invoices.py @@ -19,6 +19,7 @@ class SaleOrderMultiInvoices(models.TransientModel): for order in sale_orders: # Create invoice for this SO only invoice = order.with_context(default_invoice_origin=order.name)._create_invoices(final=True) + invoice.action_post() created_invoices += invoice # Link the invoice to the SO |
