Merge lp:~grupoesoc/openobject-addons/elico-7.0 into lp:~openerp-community/openobject-addons/elico-7.0

Proposed by Yajo
Status: Needs review
Proposed branch: lp:~grupoesoc/openobject-addons/elico-7.0
Merge into: lp:~openerp-community/openobject-addons/elico-7.0
Diff against target: 34 lines (+4/-2)
2 files modified
mail_organizer/__openerp__.py (+1/-1)
mail_organizer/wizard/wizard_mail_organizer.py (+3/-1)
To merge this branch: bzr merge lp:~grupoesoc/openobject-addons/elico-7.0
Reviewer Review Type Date Requested Status
LIN Yu Pending
Review via email: mp+217415@code.launchpad.net

Description of the change

Allow to move any message without the limitations imposed by the special permission handling for mail.message.

To post a comment you must log in.

Unmerged revisions

37. By Yajo

Allow to reassign any message.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mail_organizer/__openerp__.py'
--- mail_organizer/__openerp__.py 2014-03-06 11:16:50 +0000
+++ mail_organizer/__openerp__.py 2014-04-28 10:30:05 +0000
@@ -20,7 +20,7 @@
20#20#
21##############################################################################21##############################################################################
22{'name': 'Mail Organizer',22{'name': 'Mail Organizer',
23 'version': '0.1',23 'version': '0.2',
24 'category': 'Social Network',24 'category': 'Social Network',
25 'depends': ['web_polymorphic', 'mail'],25 'depends': ['web_polymorphic', 'mail'],
26 'author': 'Elico Corp',26 'author': 'Elico Corp',
2727
=== modified file 'mail_organizer/wizard/wizard_mail_organizer.py'
--- mail_organizer/wizard/wizard_mail_organizer.py 2014-03-06 11:16:50 +0000
+++ mail_organizer/wizard/wizard_mail_organizer.py 2014-04-28 10:30:05 +0000
@@ -19,6 +19,8 @@
19# along with this program. If not, see <http://www.gnu.org/licenses/>.19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#20#
21##############################################################################21##############################################################################
22
23from openerp import SUPERUSER_ID
22from openerp.osv import fields, osv24from openerp.osv import fields, osv
2325
2426
@@ -104,7 +106,7 @@
104 for wz in self.browse(cr, uid, ids, context=context):106 for wz in self.browse(cr, uid, ids, context=context):
105 data = {'model': wz.new_model, 'res_id': wz.new_res_id}107 data = {'model': wz.new_model, 'res_id': wz.new_res_id}
106 message_pool.write(108 message_pool.write(
107 cr, uid, wz.message_id.id, data, context=context)109 cr, SUPERUSER_ID, wz.message_id.id, data, context=context)
108 return {110 return {
109 'type': 'ir.actions.client',111 'type': 'ir.actions.client',
110 'tag': 'reload'112 'tag': 'reload'

Subscribers

People subscribed via source and target branches

to status/vote changes: