summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/stock_picking.py5
-rw-r--r--indoteknik_custom/views/stock_picking.xml1
2 files changed, 5 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index bde7402f..17ef1228 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -183,6 +183,11 @@ class StockPicking(models.Model):
countdown_hours = fields.Float(string='Countdown in Hours', compute='_callculate_sequance', default=False, store=False, compute_sudo=False)
countdown_ready_to_ship = fields.Char(string='Countdown Ready to Ship', compute='_callculate_sequance', store=False, compute_sudo=False)
final_seq = fields.Float(string='Sequance Order', index=True)
+
+
+ def schduled_update_sequance(self):
+ query = "SELECT update_sequance_stock_picking();"
+ self.env.cr.execute(query)
@api.depends('estimated_ready_ship_date', 'state')
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml
index 61ee2610..9d19b97c 100644
--- a/indoteknik_custom/views/stock_picking.xml
+++ b/indoteknik_custom/views/stock_picking.xml
@@ -18,7 +18,6 @@
<field name="note_logistic" optional="hide"/>
<field name="note" optional="hide"/>
<field name="date_reserved" optional="hide"/>
- <field name="execution_date" optional="hide"/>
<field name="state_reserve" optional="hide"/>
<field name="final_seq"/>
<field name="countdown_hours" optional="hide"/>