summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-09-17 15:52:33 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-09-17 15:52:33 +0700
commit61b54c404d0c104a5751a17eed94c5934805a050 (patch)
tree560af67cd9da950bb05f57fe7afc976437dd85ca
parent9e570f94949dad425e4bd9ce438240373460e4fc (diff)
delivery date
-rw-r--r--indoteknik_custom/models/stock_picking.py1
-rw-r--r--indoteknik_custom/views/stock_picking.xml7
2 files changed, 8 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 78a49ee4..35d408a1 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -307,6 +307,7 @@ class StockPicking(models.Model):
('delay', 'Delay By Vendor'),
('urgent', 'Urgent Delivery'),
], string='Reason Change Date Planned', tracking=True)
+ delivery_date = fields.Datetime(string='Delivery Date', copy=False)
def _get_kgx_awb_number(self):
"""Menggabungkan name dan origin untuk membuat AWB Number"""
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml
index fc8be790..abaf347d 100644
--- a/indoteknik_custom/views/stock_picking.xml
+++ b/indoteknik_custom/views/stock_picking.xml
@@ -28,6 +28,10 @@
<!-- <field name="countdown_hours" optional="hide"/>
<field name="countdown_ready_to_ship" /> -->
</field>
+
+ <field name="scheduled_date" position="after">
+ <field name="delivery_date" widget="remaining_days" optional="hide"/>
+ </field>
<field name="partner_id" position="after">
<field name="area_name" optional="hide"/>
<field name="purchase_representative_id"/>
@@ -140,6 +144,9 @@
<field name="scheduled_date" position="attributes">
<attribute name="readonly">1</attribute>
</field>
+ <field name="arrival_time" position="after">
+ <field name="delivery_date" attrs="{'invisible': [('location_id', '!=', 60)]}"/>
+ </field>
<xpath expr="//field[@name='move_ids_without_package']/form/group/field[@name='description_picking']"
position="after">
<field name="product_image" widget="image" string="Product Image"/>