diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-22 15:23:39 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-01-22 15:23:39 +0700 |
| commit | 10c3e0308d8c71654e451b2f3b06083b7b1b7791 (patch) | |
| tree | aa9187d8be6875074e881f8a428e70a8018ca282 | |
| parent | 5ed6910d689197416d0c87d269dd8362c079b831 (diff) | |
Fix bug schedule date plan
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index b44ce70a..7a575748 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -289,6 +289,8 @@ class PurchaseOrder(models.Model): def date_deadline_ref_date_planned(self): for picking in self.picking_ids: + if picking.state in ['done', 'cancel']: + continue picking.scheduled_date = self.date_planned picking.date_deadline = self.date_planned |
