From c5c8b034a15d2af7dc41ed1ba134d484c293ea04 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Fri, 14 Jun 2024 11:42:35 +0700 Subject: deactivate fullfilment --- indoteknik_custom/models/sale_order.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 9a4f9035..f954c7bf 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -96,16 +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') - def _compute_fullfillment(self): - for rec in self: - rec.fullfillment_line.unlink() + # def _compute_fullfillment(self): + # for rec in self: + # rec.fullfillment_line.unlink() - for line in rec.order_line: - line._compute_reserved_from() + # for line in rec.order_line: + # line._compute_reserved_from() - rec.compute_fullfillment = True + # rec.compute_fullfillment = True def _compute_eta_date(self): -- cgit v1.2.3