diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-01 00:50:26 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-01 00:50:26 +0700 |
| commit | 7f75982f2db861e381d418e3dd4311b503a34070 (patch) | |
| tree | add96cb994366737ababc94d29fee10eed53622f /fixco_custom/models/product_product.py | |
| parent | aaaf75e4f4c62b7481c354456909e958d1631379 (diff) | |
push fix webhook ginee to detail order
Diffstat (limited to 'fixco_custom/models/product_product.py')
| -rwxr-xr-x | fixco_custom/models/product_product.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fixco_custom/models/product_product.py b/fixco_custom/models/product_product.py index fe5e098..b0ad7b9 100755 --- a/fixco_custom/models/product_product.py +++ b/fixco_custom/models/product_product.py @@ -17,7 +17,7 @@ class ProductProduct(models.Model): qty_pcs_box = fields.Float("Pcs Box") barcode_box = fields.Char("Barcode Box") qr_code_variant = fields.Binary("QR Code Variant", compute='_compute_qr_code_variant') - qty_multiple = fields.Float('Minimum Beli') + # qty_multiple = fields.Float('Minimum Beli') brand_id = fields.Many2one('brands', string='Brand', required=True) product_public_category_id = fields.Many2one('product.public.category', string='Public Categories') categ_id = fields.Many2one('product.category', string='Category', required=False) @@ -37,13 +37,13 @@ class ProductProduct(models.Model): } } - def check_multiple_qty(self, other_qty): - if self.qty_multiple > 0 and other_qty > 0: - multiple = self.qty_multiple - if other_qty % multiple != 0: - return True - else: - return False + # def check_multiple_qty(self, other_qty): + # if self.qty_multiple > 0 and other_qty > 0: + # multiple = self.qty_multiple + # if other_qty % multiple != 0: + # return True + # else: + # return False @api.constrains('name', 'default_code') def constrains_product_type(self): |
