diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-14 11:42:35 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-06-14 11:42:35 +0700 |
| commit | c5c8b034a15d2af7dc41ed1ba134d484c293ea04 (patch) | |
| tree | 3be691e2036cbad9fdc6285d07d1d4617d4674b5 | |
| parent | 88f75ecc44ff4027cf0273b1a93d70f4e97d6a32 (diff) | |
deactivate fullfilment
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 14 |
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): |
