summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/stock_picking.py4
-rw-r--r--indoteknik_custom/views/stock_picking.xml10
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 @@
<field name="inherit_id" ref="stock.vpicktree"/>
<field name="arch" type="xml">
<field name="json_popover" position="after">
- <field name="date_done"/>
- <field name="date_doc_kirim"/>
- <field name="driver_departure_date"/>
- <field name="driver_arrival_date"/>
+ <field name="date_done" optional="hide"/>
+ <field name="date_doc_kirim" optional="hide"/>
+ <field name="driver_departure_date" optional="hide"/>
+ <field name="driver_arrival_date" optional="hide"/>
+ <field name="note_logistic" optional="hide"/>
</field>
</field>
</record>
@@ -80,6 +81,7 @@
<page string="Delivery" name="delivery_order">
<group>
<group>
+ <field name="note_logistic"/>
<field name="driver_departure_date"/>
<field name="driver_arrival_date"/>
<field name="delivery_tracking_no"/>