summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/logbook_sj.py
diff options
context:
space:
mode:
authorHafidBuroiroh <hafidburoiroh09@gmail.com>2025-09-23 11:31:14 +0700
committerHafidBuroiroh <hafidburoiroh09@gmail.com>2025-09-23 11:31:14 +0700
commite1678372f8af653d30d49f38abe8ca3129e29a03 (patch)
tree2375aac399c56d917d0ed6d419b182fdaa50897e /indoteknik_custom/models/logbook_sj.py
parent6d50b35724592c4f8c302204adcfbc0f5db3727f (diff)
parentf58e6e2fa013789bfa8ac8456cd29735a83a56d0 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into refund_system
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()