openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27324
[Bug 1284001] [NEW] mail_thread: error with subtypes
Public bug reported:
I have subtype "Task created" subscription in my project task.
Due to this commit http://bazaar.launchpad.net/~openerp-dev/openobject-addons/trunk-subtypes-ordering-dka/revision/9167
I have error bellow, because "Task created" subtype has field hidden set to True
Is it a bug or I have inconsistent database?
Traceback (most recent call last):
File "/usr/local/src/openerp/server/openerp/http.py", line 351, in dispatch
response["result"] = self._call_function(**self.params)
File "/usr/local/src/openerp/server/openerp/http.py", line 223, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/local/src/openerp/server/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/local/src/openerp/server/openerp/http.py", line 218, in checked_call
return self.func(*a, **kw)
File "/usr/local/src/openerp/server/openerp/http.py", line 535, in __call__
return self.method(*args, **kw)
File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1203, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1195, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/usr/local/src/openerp/addons/mail/mail_thread.py", line 1568, in message_get_subscription_data
return self._get_subscription_data(cr, uid, ids, None, None, user_pid=user_pid, context=context)
File "/usr/local/src/openerp/addons/mail/mail_thread.py", line 213, in _get_subscription_data
thread_subtype_dict[subtype.name]['followed'] = True
KeyError: u'\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e'
Where
>>> print u'\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e'
Задание создано
(Task created)
** Affects: openobject-addons
Importance: Undecided
Status: New
** Description changed:
I have subtype "Task created" subscription in my project task.
Due to this commit http://bazaar.launchpad.net/~openerp-dev/openobject-addons/trunk-subtypes-ordering-dka/revision/9167
- I have error bellow, because "Task created" subtype has field hidden set to True
+ I have error bellow, because "Task created" subtype has field hidden set to True
- Is it bug or I have inconsistent database?
-
+ Is it a bug or I have inconsistent database?
Traceback (most recent call last):
- File "/usr/local/src/openerp/server/openerp/http.py", line 351, in dispatch
- response["result"] = self._call_function(**self.params)
- File "/usr/local/src/openerp/server/openerp/http.py", line 223, in _call_function
- return checked_call(self.db, *args, **kwargs)
- File "/usr/local/src/openerp/server/openerp/service/model.py", line 113, in wrapper
- return f(dbname, *args, **kwargs)
- File "/usr/local/src/openerp/server/openerp/http.py", line 218, in checked_call
- return self.func(*a, **kw)
- File "/usr/local/src/openerp/server/openerp/http.py", line 535, in __call__
- return self.method(*args, **kw)
- File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1203, in call_kw
- return self._call_kw(model, method, args, kwargs)
- File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1195, in _call_kw
- return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
- File "/usr/local/src/openerp/addons/mail/mail_thread.py", line 1568, in message_get_subscription_data
- return self._get_subscription_data(cr, uid, ids, None, None, user_pid=user_pid, context=context)
- File "/usr/local/src/openerp/addons/mail/mail_thread.py", line 213, in _get_subscription_data
- thread_subtype_dict[subtype.name]['followed'] = True
- KeyError: u'\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e'
-
+ File "/usr/local/src/openerp/server/openerp/http.py", line 351, in dispatch
+ response["result"] = self._call_function(**self.params)
+ File "/usr/local/src/openerp/server/openerp/http.py", line 223, in _call_function
+ return checked_call(self.db, *args, **kwargs)
+ File "/usr/local/src/openerp/server/openerp/service/model.py", line 113, in wrapper
+ return f(dbname, *args, **kwargs)
+ File "/usr/local/src/openerp/server/openerp/http.py", line 218, in checked_call
+ return self.func(*a, **kw)
+ File "/usr/local/src/openerp/server/openerp/http.py", line 535, in __call__
+ return self.method(*args, **kw)
+ File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1203, in call_kw
+ return self._call_kw(model, method, args, kwargs)
+ File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1195, in _call_kw
+ return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
+ File "/usr/local/src/openerp/addons/mail/mail_thread.py", line 1568, in message_get_subscription_data
+ return self._get_subscription_data(cr, uid, ids, None, None, user_pid=user_pid, context=context)
+ File "/usr/local/src/openerp/addons/mail/mail_thread.py", line 213, in _get_subscription_data
+ thread_subtype_dict[subtype.name]['followed'] = True
+ KeyError: u'\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e'
Where
- >>> print u'\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e'
+ >>> print u'\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e'
Задание создано
- (Task created)
+ (Task created)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1284001
Title:
mail_thread: error with subtypes
Status in OpenERP Addons (modules):
New
Bug description:
I have subtype "Task created" subscription in my project task.
Due to this commit http://bazaar.launchpad.net/~openerp-dev/openobject-addons/trunk-subtypes-ordering-dka/revision/9167
I have error bellow, because "Task created" subtype has field hidden set to True
Is it a bug or I have inconsistent database?
Traceback (most recent call last):
File "/usr/local/src/openerp/server/openerp/http.py", line 351, in dispatch
response["result"] = self._call_function(**self.params)
File "/usr/local/src/openerp/server/openerp/http.py", line 223, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/local/src/openerp/server/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/local/src/openerp/server/openerp/http.py", line 218, in checked_call
return self.func(*a, **kw)
File "/usr/local/src/openerp/server/openerp/http.py", line 535, in __call__
return self.method(*args, **kw)
File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1203, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/local/src/openerp/web/addons/web/controllers/main.py", line 1195, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/usr/local/src/openerp/addons/mail/mail_thread.py", line 1568, in message_get_subscription_data
return self._get_subscription_data(cr, uid, ids, None, None, user_pid=user_pid, context=context)
File "/usr/local/src/openerp/addons/mail/mail_thread.py", line 213, in _get_subscription_data
thread_subtype_dict[subtype.name]['followed'] = True
KeyError: u'\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e'
Where
>>> print u'\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e'
Задание создано
(Task created)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1284001/+subscriptions
Follow ups
References