Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions nh_eobs_analysis/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class nh_eobs_news_report(osv.Model):
_columns = {
'user_id': fields.many2one('res.users', 'Taken By', readonly=True),
'date_scheduled': fields.datetime('Date Scheduled', readonly=True),
'date_terminated': fields.datetime('Date Taken', readonly=True),
'effective_date_terminated': fields.datetime('Date Taken', readonly=True),
'date_terminated': fields.datetime('Submitted Date', readonly=True),
'effective_date_terminated': fields.datetime('Effective Date Taken', readonly=True),
'ward_id': fields.many2one('nh.clinical.location', 'Ward',
readonly=True),
'location_str': fields.char('Location', readonly=True),
Expand Down Expand Up @@ -51,6 +51,7 @@ def _select(self):
end as obs_type,
a.date_scheduled as date_scheduled,
a.effective_date_terminated as effective_date_terminated,
a.date_terminated as date_terminated,
a.location_id as location_id,
case
when char_length(loc.name) = 5 then
Expand Down Expand Up @@ -155,6 +156,7 @@ def _group_by(self):
a.terminate_uid,
obs_type,
a.date_scheduled,
a.date_terminated,
a.effective_date_terminated,
a.location_id,
location_str,
Expand Down