summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-05 11:31:32 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-05 11:31:32 +0700
commit4fc562965d80b3315e58568c42075edf154256dc (patch)
tree60fdf8712ef0ff2b07c70832a96b2b58a6a26651
parent86cccc64c6f67b031a1bc345aae7922d83e021ea (diff)
refactor ask approval retur
-rw-r--r--indoteknik_custom/models/stock_picking.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 1291737e..0b78706c 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -947,6 +947,8 @@ class StockPicking(models.Model):
if self.env.user.is_accounting:
pick.approval_return_status = 'approved'
continue
+ else:
+ pick.approval_return_status = 'pengajuan1'
action = self.env['ir.actions.act_window']._for_xml_id('indoteknik_custom.action_stock_return_note_wizard')