summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/approval_retur_picking.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-11-11 16:13:27 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-11-11 16:13:27 +0700
commit4be403f544f63a5161275f0d600c6f6950f3a30c (patch)
tree9b88b2d5c6b9973a5d5476c2cedee51ff97b7fdd /indoteknik_custom/models/approval_retur_picking.py
parent1bb2d9edb764ee3de50b0a005ff40aeef60bf5d6 (diff)
push
Diffstat (limited to 'indoteknik_custom/models/approval_retur_picking.py')
-rw-r--r--indoteknik_custom/models/approval_retur_picking.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/indoteknik_custom/models/approval_retur_picking.py b/indoteknik_custom/models/approval_retur_picking.py
index 63639782..34c449a8 100644
--- a/indoteknik_custom/models/approval_retur_picking.py
+++ b/indoteknik_custom/models/approval_retur_picking.py
@@ -8,7 +8,7 @@ class ApprovalReturPicking(models.TransientModel):
_name = 'approval.retur.picking'
_description = 'Wizard to add Note Return'
- note_return = fields.Text(string="Note Return", required=True)
+ note_return = fields.Text(string="Note Return")
def action_confirm_note_return(self):
picking_ids = self._context.get('picking_ids')
@@ -16,22 +16,22 @@ class ApprovalReturPicking(models.TransientModel):
# Update the note_return field
picking.update({
- 'note_return': self.note_return
+ 'approval_return_status': 'pengajuan1'
})
# Post a highlighted message to lognote
- picking.message_post(
- body=f"<div style='background-color: #fdf2e9; border: 1px solid #f5c6cb; padding: 10px;'>"
- f"<b>Note Return (Pinned):</b><br>{self.note_return}</div>",
- subtype_id=self.env.ref("mail.mt_note").id
- )
+ # picking.message_post(
+ # body=f"<div style='background-color: #fdf2e9; border: 1px solid #f5c6cb; padding: 10px;'>"
+ # f"<b>Note Return (Pinned):</b><br>{self.note_return}</div>",
+ # subtype_id=self.env.ref("mail.mt_note").id
+ # )
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'title': 'Notification',
- 'message': 'Note berhasil ditambah',
+ 'message': 'Status pengajuan telah berubah',
'next': {'type': 'ir.actions.act_window_close'},
}
}