summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-21 14:20:24 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-21 14:20:24 +0700
commitf3cb0f0114b0e43bb6276e93e3636f0bf55c66b8 (patch)
tree7e59a5e45b76e91459b7a4583bdd3e70522279fa
parent4c4151581c9da1d548b355504f775ecaa60d8a2c (diff)
(andri) Mark as Completed pada SO akan terekam di chatter
-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',