diff --git a/web_dashboard_tile/security/ir.model.access.csv b/web_dashboard_tile/security/ir.model.access.csv
index aedacd2e..3229b4ea 100644
--- a/web_dashboard_tile/security/ir.model.access.csv
+++ b/web_dashboard_tile/security/ir.model.access.csv
@@ -1,2 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-tile_user,tile_user,model_tile,base.group_user,1,1,1,1
\ No newline at end of file
+tile_user,tile_user,model_tile_tile,base.group_user,1,1,1,1
diff --git a/web_dashboard_tile/security/rules.xml b/web_dashboard_tile/security/rules.xml
index 3eff9673..8d653b70 100644
--- a/web_dashboard_tile/security/rules.xml
+++ b/web_dashboard_tile/security/rules.xml
@@ -4,7 +4,7 @@
tile.owner
-
+
[('user_id','in',[False,user.id])]
diff --git a/web_dashboard_tile/static/src/js/custom_js.js b/web_dashboard_tile/static/src/js/custom_js.js
index f5a80538..53a2bd0e 100644
--- a/web_dashboard_tile/static/src/js/custom_js.js
+++ b/web_dashboard_tile/static/src/js/custom_js.js
@@ -54,7 +54,7 @@ _.mixin({
var $name = this.$('#dashboard_tile_new_name');
- this.tile = new instance.web.Model('tile');
+ this.tile = new instance.web.Model('tile.tile');
var private_filter = !this.$('#oe_searchview_custom_public').prop('checked');
if (_.isEmpty($name.val())){
diff --git a/web_dashboard_tile/tile.py b/web_dashboard_tile/tile.py
index 9fa5aa79..b88523c6 100644
--- a/web_dashboard_tile/tile.py
+++ b/web_dashboard_tile/tile.py
@@ -26,7 +26,7 @@ import random
class tile(orm.Model):
- _name = 'tile'
+ _name = 'tile.tile'
def _get_tile_count(self, cr, uid, ids, field_name, field_value,
arg, context=None):
diff --git a/web_dashboard_tile/tile.xml b/web_dashboard_tile/tile.xml
index fb619f6c..36b0b68a 100644
--- a/web_dashboard_tile/tile.xml
+++ b/web_dashboard_tile/tile.xml
@@ -1,9 +1,9 @@
-
- tile.tree
- tile
+
+ tile.tile.tree
+ tile.tile
tree
@@ -16,9 +16,9 @@
-
- tile.form
- tile
+
+ tile.tile.form
+ tile.tile
form
-
- tile.kanban
- tile
+
+ tile.tile.kanban
+ tile.tile
kanban
@@ -83,10 +82,10 @@
Dashboard
- tile
+ tile.tile
form
tree,kanban,form
-
+