diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-02-10 09:44:05 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-02-10 09:44:05 +0700 |
| commit | 8c87a6c35b2242ee1804e1955bbb216c8c86de4d (patch) | |
| tree | 9b10c9dc313fa3c0c1bd751f4f1581a814fe6d8c | |
| parent | 8af596373c8eb997bbb96cf020f670b6b60b57ca (diff) | |
push
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 17 |
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 |
