Skip to content

Commit

Permalink
Move fields to avoid jobs view overflows
Browse files Browse the repository at this point in the history
The job function, channel and worker fields are too large for a 6 column
layout. Job function and channel make the fields overflow of the form and the
worker fields is wrapped over 3 lines
  • Loading branch information
guewen committed Jul 23, 2015
1 parent 27a6236 commit 43d0d50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions connector/queue/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class QueueJob(models.Model):
func_name = fields.Char(readonly=True)
job_function_id = fields.Many2one(comodel_name='queue.job.function',
compute='_compute_channel',
string='Job Function',
readonly=True,
store=True)
# for searching without JOIN on channels
Expand Down
10 changes: 4 additions & 6 deletions connector/queue/model_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,17 @@
<group>
<field name="uuid"/>
<field name="func_string"/>
<field name="job_function_id"/>
<field name="channel"/>
<field name="worker_id"/>
</group>
<group col="6">
<group>
<group>
<field name="priority"/>
<field name="eta"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="user_id"/>
</group>
<group>
<field name="worker_id"/>
<field name="job_function_id"/>
<field name="channel"/>
</group>
<group>
<field name="date_created"/>
<field name="date_enqueued"/>
Expand Down

0 comments on commit 43d0d50

Please sign in to comment.