From 3d1a669929bd9201878e433e047753851ed07091 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 10 Jul 2024 14:49:41 +0700 Subject: change request stock picking --- indoteknik_custom/models/stock_move.py | 1 + indoteknik_custom/models/stock_picking.py | 7 +++++++ indoteknik_custom/views/stock_picking.xml | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/indoteknik_custom/models/stock_move.py b/indoteknik_custom/models/stock_move.py index 9c991be3..fe46bf65 100644 --- a/indoteknik_custom/models/stock_move.py +++ b/indoteknik_custom/models/stock_move.py @@ -73,4 +73,5 @@ class StockMoveLine(models.Model): _inherit = 'stock.move.line' line_no = fields.Integer('No', default=0) + note = fields.Char('Note') manufacture = fields.Many2one('x_manufactures', string="Brands", related="product_id.x_manufacture", store=True) 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: diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index 3c7f027e..7567dda2 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -55,6 +55,16 @@ + + + +