summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/models/stock_picking.py10
-rw-r--r--indoteknik_custom/views/stock_picking.xml10
2 files changed, 14 insertions, 6 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index df72dadf..4c9d7658 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -25,7 +25,7 @@ class StockPicking(models.Model):
# Delivery Order
driver_departure_date = fields.Datetime(
- string='Driver Departure Date',
+ string='Delivery Departure Date',
copy=False
)
arrival_time = fields.Datetime(
@@ -33,7 +33,7 @@ class StockPicking(models.Model):
copy=False
)
driver_arrival_date = fields.Datetime(
- string='Driver Arrival Date',
+ string='Delivery Arrival Date',
readonly=True,
copy=False
)
@@ -53,6 +53,10 @@ class StockPicking(models.Model):
readonly=True,
copy=False
)
+ sj_documentation = fields.Binary(string="Dokumentasi Surat Jalan", )
+ paket_documentation = fields.Binary(string="Dokumentasi Paket", )
+ sj_return_date = fields.Datetime(string="SJ Return Date", )
+ responsible = fields.Many2one('res.users', string='Responsible', tracking=True)
approval_status = fields.Selection([
('pengajuan1', 'Approval Accounting'),
@@ -543,7 +547,7 @@ class StockPicking(models.Model):
self.date_reserved = current_time
self.validation_minus_onhand_quantity()
-
+ self.responsible = self.env.user.id
res = super(StockPicking, self).button_validate()
self.calculate_line_no()
self.date_done = datetime.datetime.utcnow()
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml
index b5087e35..c230bc7b 100644
--- a/indoteknik_custom/views/stock_picking.xml
+++ b/indoteknik_custom/views/stock_picking.xml
@@ -130,13 +130,17 @@
<group>
<group>
<field name="note_logistic"/>
+ <field name="responsible" />
+ <field name="carrier_id"/>
+ <field name="picking_code" attrs="{'invisible': [['picking_code', '=', False]]}"/>
+ <field name="picking_code" string="Picking code (akan digenerate ketika sudah di-validate)" attrs="{'invisible': [['picking_code', '!=', False]]}"/>
<field name="driver_departure_date" attrs="{'readonly':[('invoice_status', '=', 'invoiced')]}"/>
<field name="driver_arrival_date"/>
<field name="delivery_tracking_no"/>
<field name="driver_id"/>
- <field name="carrier_id"/>
- <field name="picking_code" attrs="{'invisible': [['picking_code', '=', False]]}"/>
- <field name="picking_code" string="Picking code (akan digenerate ketika sudah di-validate)" attrs="{'invisible': [['picking_code', '!=', False]]}"/>
+ <field name='sj_return_date'/>
+ <field name="sj_documentation" widget="image" />
+ <field name="paket_documentation" widget="image" />
</group>
</group>
</page>