summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-06-15 10:40:34 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-06-15 10:40:34 +0700
commit570e411e891da1163e3e0114d0aab38d183bb18a (patch)
tree5a07b7c63f0b452e0a96506bfebe24435a65ff7b
parent080bdd7d1283509e55a0af2459c8e12b7519c0eb (diff)
fix fullfillment
-rwxr-xr-xindoteknik_custom/models/sale_order.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 9a4f9035..91792b59 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -9,7 +9,7 @@ _logger = logging.getLogger(__name__)
class SaleOrder(models.Model):
_inherit = "sale.order"
- fullfillment_line = fields.One2many('sales.order.fullfillment', 'sales_order_id', string='Fullfillment')
+ # fullfillment_line = fields.One2many('sales.order.fullfillment', 'sales_order_id', string='Fullfillment')
order_sales_match_line = fields.One2many('sales.order.purchase.match', 'sales_order_id', string='Purchase Match Lines', states={'cancel': [('readonly', True)], 'done': [('readonly', True)]}, copy=True)
total_margin = fields.Float('Total Margin', compute='_compute_total_margin', help="Total Margin in Sales Order Header")
total_percent_margin = fields.Float('Total Percent Margin', compute='_compute_total_percent_margin', help="Total % Margin in Sales Order Header")
@@ -96,17 +96,16 @@ class SaleOrder(models.Model):
('cust_director', 'Customer Director'),
('cust_procurement', 'Customer Procurement')
], string='Web Approval', copy=False)
- compute_fullfillment = fields.Boolean(string='Compute Fullfillment', compute="_compute_fullfillment")
+ # compute_fullfillment = fields.Boolean(string='Compute Fullfillment', compute="_compute_fullfillment")
- def _compute_fullfillment(self):
- for rec in self:
- rec.fullfillment_line.unlink()
-
- for line in rec.order_line:
- line._compute_reserved_from()
+ # def _compute_fullfillment(self):
+ # for rec in self:
+ # rec.fullfillment_line.unlink()
- rec.compute_fullfillment = True
+ # for line in rec.order_line:
+ # line._compute_reserved_from()
+ # rec.compute_fullfillment = True
def _compute_eta_date(self):
max_leadtime = 0