Skip to content

Commit

Permalink
Reorganize views
Browse files Browse the repository at this point in the history
Reorganize for views of artist, album and track.
  • Loading branch information
DocMarty84 committed Apr 24, 2018
1 parent cfc333d commit 3b21aa1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
2 changes: 1 addition & 1 deletion models/oomusic_track.py
Expand Up @@ -42,7 +42,7 @@ class MusicTrack(models.Model):
# File data
duration = fields.Integer('Duration', readonly=True)
duration_min = fields.Float('Duration', readonly=True)
bitrate = fields.Integer('Bitrate', readonly=True)
bitrate = fields.Integer('Bitrate (kbps)', readonly=True)
path = fields.Char('Path', required=True, index=True, readonly=True)
size = fields.Float('File Size (MiB)', readonly=True)
play_count = fields.Integer('Play Count', default=0, readonly=True)
Expand Down
5 changes: 3 additions & 2 deletions views/oomusic_album_views.xml
Expand Up @@ -20,6 +20,8 @@
<div class="oe_title">
<h1>
<field name="name"/>
<span>&amp;nbsp;</span>
<field name="star" widget="priority"/>
</h1>
</div>
<group>
Expand All @@ -29,8 +31,7 @@
<field name="genre_id" options="{'no_create': True}"/>
</group>
<group>
<field name="star" widget="priority"/>
<field name="rating"/>
<field name="rating" widget="priority"/>
</group>
</group>
<notebook>
Expand Down
9 changes: 3 additions & 6 deletions views/oomusic_artist_views.xml
Expand Up @@ -17,18 +17,15 @@
<div class="oe_title">
<h1>
<field name="name"/>
<span>&amp;nbsp;</span>
<field name="star" widget="priority"/>
</h1>
</div>
<group>
<field name="fm_getinfo_bio" widget="html"/>
</group>
<group>
<group>
<field name="star" widget="priority"/>
</group>
<group>
<field name="rating"/>
</group>
<field name="rating" widget="priority"/>
</group>
<notebook>
<page string="Albums">
Expand Down
27 changes: 17 additions & 10 deletions views/oomusic_track_views.xml
Expand Up @@ -19,44 +19,51 @@
<div class="oe_title">
<h1>
<field name="name"/>
<span>&amp;nbsp;</span>
<field name="star" widget="priority"/>
</h1>
</div>
<h3>
<span>Song Infos</span>
</h3>
<group>
<group>
<field name="artist_id" options="{'no_create': True}"/>
<field name="album_artist_id" options="{'no_create': True}"/>
<field name="album_id" options="{'no_create': True}"/>
<field name="year"/>
<field name="genre_id" options="{'no_create': True}"/>
</group>
<group>
<field name="star" widget="priority"/>
<field name="rating"/>
<field name="duration_min" widget="float_time"/>
<field name="track_number"/>
<field name="track_total"/>
<field name="disc"/>
</group>
</group>
<group>
<group>
<field name="album_artist_id" options="{'no_create': True}"/>
<field name="duration_min" widget="float_time"/>
<field name="description"/>
<field name="composer"/>
<field name="performer_id" options="{'no_create': True}"/>
<field name="copyright"/>
<field name="contact"/>
<field name="encoded_by"/>
</group>
</group>
<h3>
<span>File Infos</span>
</h3>
<group>
<group>
<field name="rating" widget="priority"/>
<field name="play_count"/>
<field name="last_play"/>
<field name="bitrate"/>
<field name="last_modification" groups="base.group_no_one"/>
</group>
<group>
<field name="bitrate"/>
<field name="size"/>
</group>
</group>
<group>
<field name="path"/>
<field name="size"/>
</group>
<notebook>
<page string="Download Links">
Expand Down

0 comments on commit 3b21aa1

Please sign in to comment.