summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_orders_multi_update.py
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-07-05 15:00:30 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-07-05 15:00:30 +0700
commit2b7d3e4f575c881b73f18b242dbf65e9bbf4c5ab (patch)
treefe9d5aca45b030cfedcc8875c02bafcb277d8f3f /indoteknik_custom/models/sale_orders_multi_update.py
parent20f206f3d9b798fee50a06d4a462cf256a71d58e (diff)
parent5b1b45d46e34c6724572b9b3182813e0bfdea0a3 (diff)
(andri) fix conflict
Diffstat (limited to 'indoteknik_custom/models/sale_orders_multi_update.py')
-rw-r--r--indoteknik_custom/models/sale_orders_multi_update.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_orders_multi_update.py b/indoteknik_custom/models/sale_orders_multi_update.py
index 95cfde21..962f60b5 100644
--- a/indoteknik_custom/models/sale_orders_multi_update.py
+++ b/indoteknik_custom/models/sale_orders_multi_update.py
@@ -11,6 +11,13 @@ class SaleOrdersMultiUpdate(models.TransientModel):
sale_ids = self._context['sale_ids']
sales = self.env['sale.order'].browse(sale_ids)
sales.action_multi_update_invoice_status()
+
+ for sale in sales:
+ sale.message_post(
+ body="Sales Order has been marked as Completed",
+ message_type="comment"
+ )
+
return {
'type': 'ir.actions.client',
'tag': 'display_notification',