[IMP][REM]: Improve code and remove unused method
bzr revid: aja@tinyerp.com-20130924133041-0j2k8qc5ubjxwghx
This commit is contained in:
parent
5d95224114
commit
2f708369cb
|
@ -1319,7 +1319,7 @@ class mail_thread(osv.AbstractModel):
|
||||||
#raise error on comment message if user is not employee
|
#raise error on comment message if user is not employee
|
||||||
employee = self._check_user_is_employee(cr, uid, context=context)
|
employee = self._check_user_is_employee(cr, uid, context=context)
|
||||||
if not employee and type == 'comment':
|
if not employee and type == 'comment':
|
||||||
raise orm.except_orm(_('Access Denied'),_('Restricted to employees.'))
|
raise orm.except_orm(_('Warning'),_('Restricted to employees.'))
|
||||||
|
|
||||||
# if we're processing a message directly coming from the gateway, the destination model was
|
# if we're processing a message directly coming from the gateway, the destination model was
|
||||||
# set in the context.
|
# set in the context.
|
||||||
|
|
|
@ -1794,7 +1794,6 @@ openerp.mail = function (session) {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
this.ParentViewManager = parent;
|
this.ParentViewManager = parent;
|
||||||
this.node = _.clone(node);
|
this.node = _.clone(node);
|
||||||
console.log(self.node);
|
|
||||||
this.node.params = _.extend({
|
this.node.params = _.extend({
|
||||||
'display_indented_thread': -1,
|
'display_indented_thread': -1,
|
||||||
'show_reply_button': false,
|
'show_reply_button': false,
|
||||||
|
|
Loading…
Reference in New Issue