summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2025-03-05 14:01:45 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2025-03-05 14:01:45 +0700
commit6b80ada3ebc5477b51666ccb41cf30184a1d1af0 (patch)
tree827f1244dc535f796d4636fe63c1fec19993a603
parente3b5d1c9bdd8a764983b01442ddf041e8ade87bf (diff)
udpate bugs
-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"/>