summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-10 08:53:39 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-10 08:53:39 +0700
commit9c6e2e8f35f14dda376e543e5b63b0bddee2fd88 (patch)
tree6210f71a62abb55d1be41c48467e167ddb031394 /indoteknik_custom/models/stock_picking.py
parentdcbb5680c9dd6ecf18eaf3dbbc3af26ac7a47134 (diff)
<iman> update telegram
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index b65d06e4..58eb5d82 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -314,7 +314,8 @@ class StockPicking(models.Model):
telegram_data = {
'tittle': 'Permintaan retur ' + self.name,
'about': 'Permintaan retur ' + self.name,
- 'id_data': self.id
+ 'id_data': self.id,
+ 'username': '@'+self.name.replace('/', '')
}
telegram = request.env['website.telegram'].create(telegram_data)
for pick in self: