Skip to content

Commit

Permalink
Reduce tree views limits.
Browse files Browse the repository at this point in the history
240 records has a significant impact on the loading time of the view,
therefore we decrease the limit to a more reasonable value.
  • Loading branch information
DocMarty84 committed Mar 28, 2019
1 parent 945237b commit 369403a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion views/oomusic_playlist_views.xml
Expand Up @@ -102,7 +102,7 @@
<field name="name">oomusic.playlist.line.tree</field>
<field name="model">oomusic.playlist.line</field>
<field name="arch" type="xml">
<tree string="Tracks" js_class="playlist_tree" create="0" limit="240"
<tree string="Tracks" js_class="playlist_tree" create="0" limit="120"
decoration-success="playing == True"
decoration-bf="playing == True"
decoration-muted="last_play != False and playing == False">
Expand Down
2 changes: 1 addition & 1 deletion views/oomusic_track_views.xml
Expand Up @@ -81,7 +81,7 @@
<field name="name">oomusic.track.tree</field>
<field name="model">oomusic.track</field>
<field name="arch" type="xml">
<tree string="Tracks" default_order="artist_id, album_id, disc, track_number_int, track_number, path" create="0" limit="240">
<tree string="Tracks" default_order="artist_id, album_id, disc, track_number_int, track_number, path" create="0" limit="120">
<field name="in_playlist" invisible="1"/>
<button name="action_add_to_playlist" string="Add To Current Playlist"
icon="fa-plus" type="object"
Expand Down

0 comments on commit 369403a

Please sign in to comment.