diff options
| author | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-13 08:56:20 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-13 08:56:20 +0700 |
| commit | a9eac2968018d74c190ac376ce2b874e32ded3b6 (patch) | |
| tree | 0c675d880a0a7d7ea873e328f4eb20955cb10342 /indoteknik_custom/models/sj_tele.py | |
| parent | 812bdbebbbe1cc0b1cc6294491f7771a668a04bd (diff) | |
| parent | 10ddd8835a98bbfe58abedf6a405929dfbbb76d0 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into pum-v3
Diffstat (limited to 'indoteknik_custom/models/sj_tele.py')
| -rw-r--r-- | indoteknik_custom/models/sj_tele.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indoteknik_custom/models/sj_tele.py b/indoteknik_custom/models/sj_tele.py index 5ea08340..3ef4b877 100644 --- a/indoteknik_custom/models/sj_tele.py +++ b/indoteknik_custom/models/sj_tele.py @@ -66,10 +66,12 @@ class SjTele(models.Model): header = "Berikut merupakan nomor BU/OUT yang belum ada di Logbook SJ report:\n" BUB = 20 # jumlah baris per bubble + total = (len(lines) + BUB - 1) // BUB # total bubble for i in range(0, len(lines), BUB): body = "\n".join(lines[i:i + BUB]) - text = header + body + bagian = (i // BUB) + 1 + text = f"{header}Lampiran ke {bagian}/{total}\n{body}" try: r = requests.post( api_base + "/sendMessage", |
