summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-07-10 14:49:41 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-07-10 14:49:41 +0700
commit3d1a669929bd9201878e433e047753851ed07091 (patch)
tree9afd37dcb8bc34652d933a6606981ddfacf24993 /indoteknik_custom/models/stock_picking.py
parent7e94d67390f87683982d8c62b862812a8971950d (diff)
change request stock picking
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index 2dd69e01..308e6d93 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -89,6 +89,13 @@ class StockPicking(models.Model):
sale_order = fields.Char(string='Matches SO', copy=False)
printed_sj = fields.Boolean('Printed Surat Jalan', help='flag which is internal use or not')
+ def reset_status_printed(self):
+ for rec in self:
+ rec.status_printed = 'not_printed'
+ rec.printed_sj = False
+ rec.date_printed_list = False
+ rec.date_printed_sj = False
+
@api.onchange('carrier_id')
def constrains_carrier_id(self):
if self.carrier_id: