From 237ea1205935d9f1bea5eb704df02e3835f9f82a Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 14 Jun 2023 10:49:33 +0700 Subject: add note logistic for exclude calculate leadtime --- indoteknik_custom/models/stock_picking.py | 4 ++++ indoteknik_custom/views/stock_picking.xml | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 54b478ae..c8424121 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -59,6 +59,10 @@ class StockPicking(models.Model): ('approved', 'Approved'), ], string='Approval Return Status', readonly=True, copy=False, index=True, tracking=3, help="Approval Status untuk Return") date_doc_kirim = fields.Datetime(string='Tanggal Kirim di SJ', help="Tanggal Kirim di cetakan SJ, tidak berpengaruh ke Accounting") + note_logistic = fields.Selection([ + ('hold', 'Hold by Sales'), + ('not_paid', 'Customer belum bayar') + ], string='Note', help='jika field ini diisi maka tidak akan dihitung ke lead time') def action_create_invoice_from_mr(self): """Create the invoice associated to the PO. diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index e4e9f722..4bbdc7b8 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -7,10 +7,11 @@ - - - - + + + + + @@ -80,6 +81,7 @@ + -- cgit v1.2.3