diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-07-31 08:35:01 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-07-31 08:35:01 +0700 |
| commit | aeb4fc3b4b8a4c38d6628946232c236a4d2fe2a9 (patch) | |
| tree | 28db4b1dc10a10bc65f5b57a4470d39e78629ef7 /indoteknik_custom/models/sale_order_line.py | |
| parent | 8d1af98bb7dab812f91d7d275b4004c4e5b0ff75 (diff) | |
| parent | d6bdde8fe63ff15ce8f3fee6bc5e8ae903fc78ce (diff) | |
<hapit>merge
Diffstat (limited to 'indoteknik_custom/models/sale_order_line.py')
| -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'] |
