diff options
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/stock_picking.xml | 7 |
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"/> |
