diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-07-28 10:44:32 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-07-28 10:44:32 +0000 |
| commit | 7e03f052ad9217c165dca5a330f56e2a9e1a1bc1 (patch) | |
| tree | e665025d571ed6e18a29be8a60a22f13194e22c9 /indoteknik_custom/models | |
| parent | 3df417568e6efe97b9c8e3d2752e13f584802d71 (diff) | |
| parent | d5eb5c9139f016498cc70d6f241b8597b0b4b06b (diff) | |
Merged in is_discweb_so_line (pull request #369)
Is discweb so line
Diffstat (limited to 'indoteknik_custom/models')
| -rw-r--r-- | indoteknik_custom/models/sale_order_line.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order_line.py b/indoteknik_custom/models/sale_order_line.py index 5e9fc362..64b9f9bc 100644 --- a/indoteknik_custom/models/sale_order_line.py +++ b/indoteknik_custom/models/sale_order_line.py @@ -1,6 +1,10 @@ from odoo import fields, models, api, _ from odoo.exceptions import UserError from datetime import datetime, timedelta +import logging +from odoo.tools.float_utils import float_compare + +_logger = logging.getLogger(__name__) class SaleOrderLine(models.Model): @@ -49,6 +53,9 @@ class SaleOrderLine(models.Model): qty_free_bu = fields.Float(string='Free BU', compute='_get_qty_free_bandengan') desc_updatable = fields.Boolean(string='desc boolean', default=True, compute='_get_desc_updatable') + is_has_disc = fields.Boolean('Flash Sale', default=False) + + def _get_outgoing_incoming_moves(self): outgoing_moves = self.env['stock.move'] incoming_moves = self.env['stock.move'] |
