summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/automatic_purchase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py
index 012d680a..ce0328c4 100644
--- a/indoteknik_custom/models/automatic_purchase.py
+++ b/indoteknik_custom/models/automatic_purchase.py
@@ -240,7 +240,7 @@ class AutomaticPurchase(models.Model):
'date_order': current_time,
'from_apo': True,
'note_description': 'Automatic PO',
- 'show_description': False if vendor_id.id == 5571 else True,
+ 'show_description': False if vendor_id == 5571 else True,
}
new_po = self.env['purchase.order'].create(param_header)