diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-26 09:30:02 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-26 09:30:02 +0700 |
| commit | ac63ed0d7d13e086dd6bddf02e922bad19d1247a (patch) | |
| tree | 2c34d6b2ec73d187e09ed9eeede61c28844b54ca | |
| parent | e746cf283822f12afe7f7cf11cbf2156b3b689ef (diff) | |
add note on logbook sj
| -rw-r--r-- | indoteknik_custom/models/logbook_sj.py | 4 | ||||
| -rw-r--r-- | indoteknik_custom/models/report_logbook_sj.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/logbook_sj.xml | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/report_logbook_sj.xml | 1 |
4 files changed, 6 insertions, 1 deletions
diff --git a/indoteknik_custom/models/logbook_sj.py b/indoteknik_custom/models/logbook_sj.py index 9e3daf20..f84619ad 100644 --- a/indoteknik_custom/models/logbook_sj.py +++ b/indoteknik_custom/models/logbook_sj.py @@ -40,7 +40,8 @@ class LogbookSJ(models.TransientModel): 'carrier_id': stock.carrier_id.id, 'tracking_no': stock.delivery_tracking_no, 'partner_id': parent_id, - 'report_logbook_sj_id': report_logbook.id + 'report_logbook_sj_id': report_logbook.id, + 'note': line.note } self.env['report.logbook.sj.line'].create([data]) @@ -69,6 +70,7 @@ class LogbookSJLine(models.TransientModel): logbook_sj_id = fields.Many2one('logbook.sj', string='Logbook SJ') partner_id = fields.Many2one('res.partner', string='Customer') picking_id = fields.Many2one('res.partner', string='Customer') + note = fields.Char(string='Note') @api.onchange('name') def onchange_name(self): diff --git a/indoteknik_custom/models/report_logbook_sj.py b/indoteknik_custom/models/report_logbook_sj.py index f34835ae..093848b5 100644 --- a/indoteknik_custom/models/report_logbook_sj.py +++ b/indoteknik_custom/models/report_logbook_sj.py @@ -67,3 +67,4 @@ class ReportLogbookSJLine(models.Model): sale_id = fields.Many2one('sale.order', string='Sale Order') report_logbook_sj_id = fields.Many2one('report.logbook.sj', string='Logbook SJ') not_exist = fields.Boolean(string='Not Exist') + note = fields.Char(string='Note') diff --git a/indoteknik_custom/views/logbook_sj.xml b/indoteknik_custom/views/logbook_sj.xml index 9eb9aa12..0fa65be5 100644 --- a/indoteknik_custom/views/logbook_sj.xml +++ b/indoteknik_custom/views/logbook_sj.xml @@ -22,6 +22,7 @@ <field name="carrier_id" readonly="1"/> <field name="tracking_no" readonly="1"/> <field name="partner_id" readonly="1"/> + <field name="note"/> </tree> </field> </sheet> diff --git a/indoteknik_custom/views/report_logbook_sj.xml b/indoteknik_custom/views/report_logbook_sj.xml index 8221b419..687464f0 100644 --- a/indoteknik_custom/views/report_logbook_sj.xml +++ b/indoteknik_custom/views/report_logbook_sj.xml @@ -31,6 +31,7 @@ <field name="picking_id"/> <field name="sale_id"/> <field name="not_exist"/> + <field name="note"/> </tree> </field> </record> |
