summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-06-14 11:42:35 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-06-14 11:42:35 +0700
commitc5c8b034a15d2af7dc41ed1ba134d484c293ea04 (patch)
tree3be691e2036cbad9fdc6285d07d1d4617d4674b5
parent88f75ecc44ff4027cf0273b1a93d70f4e97d6a32 (diff)
deactivate fullfilment
-rwxr-xr-xindoteknik_custom/models/sale_order.py14
1 files 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):