[ImP] method name change and removed the access call which is not needed bcz the system is calling it self.

bzr revid: psa@tinyerp.com-20130604094722-2b8i6ba7blz1g2rc
This commit is contained in:
Paramjit Singh Sahota 2013-06-04 15:17:22 +05:30
parent 42b84ee058
commit 388a3e14a1
2 changed files with 2 additions and 3 deletions

View File

@ -152,7 +152,7 @@ class mail_thread(osv.AbstractModel):
res[id]['message_summary'] = "<span class='oe_kanban_mail_new' title='%s'><span class='oe_e'>9</span> %d %s</span>" % (title, res[id].pop('message_unread_count'), _("New"))
return res
def check_access_right(self, cr, uid, ids, context=None):
def check_technical_rights(self, cr, uid, ids, context=None):
grp_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'base', 'group_no_one')
user_pid = self.pool.get('res.groups').read(cr, uid, grp_id[1], ['users'], context=context)['users']
if uid in user_pid:

View File

@ -198,7 +198,7 @@ openerp_mail_followers = function(session, mail) {
// truncate number of displayed followers
var truncated = this.followers.slice(0, this.displayed_nb);
_(truncated).each(function (record) {
self.ds_model.call('check_access_right', [self.session.uid]).then(function(result){
self.ds_model.call('check_technical_rights', [self.session.uid]).then(function(result){
self.check_access = result;
record.avatar_url = mail.ChatterUtils.get_image(self.session, 'res.partner', 'image_small', record.id);
$(session.web.qweb.render('mail.followers.partner', {'record': record, 'widget': self})).appendTo(node_user_list);
@ -291,7 +291,6 @@ openerp_mail_followers = function(session, mail) {
var self = this;
var checklist = new Array();
this.ds_model.call('check_access_rights', ['write','read'])
var subtype_checkbox = _(this.$('.oe_actions input[type="checkbox"]'))
if (partner_id) {
subtype_checkbox = _($('.oe_edit_actions input[type="checkbox"]'))