Browse Source

rename tile to tile.tile

pull/54/head
Markus Schneider 10 years ago
parent
commit
1f3eb98ac9
  1. 2
      web_dashboard_tile/security/ir.model.access.csv
  2. 2
      web_dashboard_tile/security/rules.xml
  3. 2
      web_dashboard_tile/static/src/js/custom_js.js
  4. 2
      web_dashboard_tile/tile.py
  5. 27
      web_dashboard_tile/tile.xml

2
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
tile_user,tile_user,model_tile_tile,base.group_user,1,1,1,1

2
web_dashboard_tile/security/rules.xml

@ -4,7 +4,7 @@
<record id="model_tile_rule" model="ir.rule">
<field name="name">tile.owner</field>
<field name="model_id" ref="model_tile" />
<field name="model_id" ref="model_tile_tile" />
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
<field name="domain_force">[('user_id','in',[False,user.id])]</field>
</record>

2
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())){

2
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):

27
web_dashboard_tile/tile.xml

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="dashboard_tile_tree_view">
<field name="name">tile.tree</field>
<field name="model">tile</field>
<record model="ir.ui.view" id="dashboard_tile_tile_tree_view">
<field name="name">tile.tile.tree</field>
<field name="model">tile.tile</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Dashboard tiles">
@ -16,9 +16,9 @@
</field>
</record>
<record model="ir.ui.view" id="dashboard_tile_form_view">
<field name="name">tile.form</field>
<field name="model">tile</field>
<record model="ir.ui.view" id="dashboard_tile_tile_form_view">
<field name="name">tile.tile.form</field>
<field name="model">tile.tile</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Dashboard tiles" version="7.0">
@ -28,16 +28,15 @@
<field name="model_id"/>
<field name="user_id"/>
<field name="action_id"/>
<!-- field name="count"/> -->
</group>
</form>
</field>
</record>
<!-- CRM Lead Kanban View -->
<record model="ir.ui.view" id="dashboard_tile_kanban_view">
<field name="name">tile.kanban</field>
<field name="model">tile</field>
<record model="ir.ui.view" id="dashboard_tile_tile_kanban_view">
<field name="name">tile.tile.kanban</field>
<field name="model">tile.tile</field>
<field name="type">kanban</field>
<field name="arch" type="xml">
<kanban edit="false" create="false">
@ -83,10 +82,10 @@
<record model="ir.actions.act_window" id="action_tree_dashboard_tile">
<field name="name">Dashboard</field>
<field name="res_model">tile</field>
<field name="res_model">tile.tile</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="view_id" ref="dashboard_tile_tree_view"/>
<field name="view_id" ref="dashboard_tile_tile_tree_view"/>
</record>
<menuitem id="menue_dashboard_tile"
@ -95,11 +94,11 @@
<record model="ir.actions.act_window" id="action_kanban_dashboard_tile">
<field name="name">Dashboard</field>
<field name="res_model">tile</field>
<field name="res_model">tile.tile</field>
<field name="view_type">form</field>
<field name="view_mode">kanban</field>
<field name="domain">['|',('user_id','=',False),('user_id','=',uid)]</field>
<field name="view_id" ref="dashboard_tile_tree_view"/>
<field name="view_id" ref="dashboard_tile_tile_tree_view"/>
</record>
<record id="mail_dashboard" model="ir.ui.menu">

Loading…
Cancel
Save