diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-19 20:58:48 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-19 20:58:48 +0300 |
commit | 23f35cfec06d4c3c73ae7a61017a304e5b8000f8 (patch) | |
tree | 0047797f60510b453b9ae727c9d755bcac1297ae /servo/models | |
parent | d131966430914e1a148f02666ccdb1c4e5bc530f (diff) | |
download | Servo-23f35cfec06d4c3c73ae7a61017a304e5b8000f8.tar.gz Servo-23f35cfec06d4c3c73ae7a61017a304e5b8000f8.tar.bz2 Servo-23f35cfec06d4c3c73ae7a61017a304e5b8000f8.zip |
Work authorization fixes
Diffstat (limited to 'servo/models')
-rw-r--r-- | servo/models/note.py | 2 | ||||
-rw-r--r-- | servo/models/order.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/servo/models/note.py b/servo/models/note.py index ab6b622..e7ab2dd 100644 --- a/servo/models/note.py +++ b/servo/models/note.py @@ -145,7 +145,7 @@ class Note(MPTTModel): (T_NOTE, _("Technician's Note")), (T_CUSTOMER_NOTE, _("Customer's Note")), (T_PROBLEM, _("Customer Reported Issue")), - (T_VERIFIED_PROBLEM, _("Verified Verified Issue")), + (T_VERIFIED_PROBLEM, _("Technician Verified Issue")), (T_DIAGNOSIS, _("Diagnosis")), (T_ESCALATION, _("Escalation")), ) diff --git a/servo/models/order.py b/servo/models/order.py index 574637d..8bf4dd6 100644 --- a/servo/models/order.py +++ b/servo/models/order.py @@ -287,10 +287,13 @@ class Order(models.Model): r = {'order': self} r['conf'] = Configuration.conf() r['title'] = _(u"Service Order #%s") % self.code + r['notes'] = self.note_set.filter(is_reported=True) + # TODO: replace with constants - r['issues'] = r['notes'].filter(type=2) + r['issues'] = r['notes'].filter(type=1) r['diagnoses'] = r['notes'].filter(type=3) + r['tech_notes'] = r['notes'].filter(type=0) r['verified_issues'] = r['notes'].filter(type=4) r['customer_notes'] = r['notes'].filter(type=5) |