summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/logbook_sj.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-09-15 11:02:36 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-09-15 11:02:36 +0000
commit2bb9e9f01c795f3b72593c1286a9a56ea6e2e120 (patch)
treed51422169ea4b005c9076e7efdcd83589d0c2e1f /indoteknik_custom/models/logbook_sj.py
parente432f70b5588c1ab86add20ee15df20d2f2a3876 (diff)
parentcc51c51ac0e89e3edf762b1a7a809ce8304dc53c (diff)
Merged in cr_lsj (pull request #413)
<Miqdad> add line no
Diffstat (limited to 'indoteknik_custom/models/logbook_sj.py')
-rw-r--r--indoteknik_custom/models/logbook_sj.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_custom/models/logbook_sj.py b/indoteknik_custom/models/logbook_sj.py
index 75b2622f..0cda9c8b 100644
--- a/indoteknik_custom/models/logbook_sj.py
+++ b/indoteknik_custom/models/logbook_sj.py
@@ -24,6 +24,7 @@ class LogbookSJ(models.TransientModel):
}
report_logbook = self.env['report.logbook.sj'].create([parameters_header])
+ seq=1
for line in logbook_line:
picking = self.env['stock.picking'].search([('picking_code', '=', line.name)], limit=1)
if not picking:
@@ -43,9 +44,11 @@ class LogbookSJ(models.TransientModel):
'tracking_no': stock.delivery_tracking_no,
'partner_id': parent_id,
'report_logbook_sj_id': report_logbook.id,
- 'note': line.note
+ 'note': line.note,
+ 'line_num': seq
}
self.env['report.logbook.sj.line'].create([data])
+ seq += 1
report_logbook_ids.append(report_logbook.id)
line.unlink()