summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/logbook_sj.py
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-09-16 21:48:17 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-09-16 21:48:17 +0700
commit0a117ae984dafdb9c160e3fea4d1aac0ddfd164e (patch)
tree6223cbfa6e270321a23b6be18d5a6ea22138671b /indoteknik_custom/models/logbook_sj.py
parent1f63169f38675adf23a1e4a66b31711f90721f39 (diff)
parent6791235591714e4ac45a6729409716bcba9e8fea (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into cbd-apt
merge
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()