From af9738fd0a0811d5e8473ec6ac0e5188caf0755d Mon Sep 17 00:00:00 2001 From: Mqdd Date: Wed, 25 Feb 2026 14:55:44 +0700 Subject: hilangin validasi check bundling SP --- fixco_custom/models/stock_picking.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fixco_custom/models/stock_picking.py b/fixco_custom/models/stock_picking.py index 0f80750..8894787 100755 --- a/fixco_custom/models/stock_picking.py +++ b/fixco_custom/models/stock_picking.py @@ -106,15 +106,15 @@ class StockPicking(models.Model): picking.date_canceled = fields.Datetime.now() return super(StockPicking, self).action_cancel() - def check_qty_bundling_product(self): - for line in self.move_ids_without_package: - if line.sale_line_id and line.sale_line_id.name: - if '(Bundle Component)' in line.sale_line_id.name: - if line.forecast_availability < 1 or line.quantity_done < 1: - raise UserError( - 'Barang Bundling : %s Quantity Done tidak boleh 0' - % line.product_id.display_name - ) + # def check_qty_bundling_product(self): + # for line in self.move_ids_without_package: + # if line.sale_line_id and line.sale_line_id.name: + # if '(Bundle Component)' in line.sale_line_id.name: + # if line.forecast_availability < 1 or line.quantity_done < 1: + # raise UserError( + # 'Barang Bundling : %s Quantity Done tidak boleh 0' + # % line.product_id.display_name + # ) def check_qty_done_stock(self): -- cgit v1.2.3