summaryrefslogtreecommitdiff
path: root/fixco_custom
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-25 14:55:44 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-25 14:55:44 +0700
commitaf9738fd0a0811d5e8473ec6ac0e5188caf0755d (patch)
treeff7a2bedbb3fc8ddcffd1e99c0d2bce512c07b4e /fixco_custom
parent64a1909a983ef6d6039c6c82defa938084319fbc (diff)
<Miqdad> hilangin validasi check bundling SP
Diffstat (limited to 'fixco_custom')
-rwxr-xr-xfixco_custom/models/stock_picking.py18
1 files 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):