summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/stock_picking.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py
index cc86c451..ec761900 100644
--- a/indoteknik_custom/models/stock_picking.py
+++ b/indoteknik_custom/models/stock_picking.py
@@ -1217,4 +1217,19 @@ class BarcodeProduct(models.Model):
if record.barcode and not record.product_id.barcode:
record.product_id.barcode = record.barcode
else:
- raise UserError('Barcode sudah terisi') \ No newline at end of file
+ raise UserError('Barcode sudah terisi')
+
+class CheckKoli(models.Model):
+ _name = 'check.koli'
+ _description = 'Check Koli'
+ _order = 'picking_id, id'
+
+ picking_id = fields.Many2one(
+ 'stock.picking',
+ string='Picking Reference',
+ required=True,
+ ondelete='cascade',
+ index=True,
+ copy=False,
+ )
+ product_id = fields.(string='Koli') \ No newline at end of file