Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

-1

Bug in calendar module

By
abdallah ghrir
on 9/30/15, 10:43 AM 558 views

Hi , 

I have a problem with the calendar module : i added a one2many fields :

class ProjectTask(models.Model):

_inherit = 'project.task'

calendar_event_ids = fields.One2many('calendar.event', 'task_event',

string="Events",

)

and many2one fields :

class CalendarEvent(models.Model):

_inherit = 'calendar.event'

task_event = fields.Many2one('project.task')


but i  faced this bug when i tested : and this is the screenplay of my test :

1: create a new task

2: create a new event

3: record the event (do not save the task)

4: re open the event

=> The error appears

File "/opt/odoo/addons/calendar/calendar.py", line 306, in get_attendee_detail

meeting = self.pool['calendar.event'].browse(cr, uid, get_real_ids(meeting_id), context=context)

File "/opt/odoo/addons/calendar/calendar.py", line 51, in get_real_ids

return calendar_id2real_id(ids)

File "/opt/odoo/addons/calendar/calendar.py", line 46, in calendar_id2real_id

return calendar_id and int(calendar_id) or calendar_id

ValueError: invalid literal for int() with base 10: 'one2many_v_id_319'


Thaaaaanks :

ghrir, can u please update the complete error, at least from the line where its mentioning your file name........

Pawan
on 10/1/15, 1:40 AM

Odoo Server Error Traceback (most recent call last): File "/opt/odoo/openerp/http.py", line 537, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/openerp/http.py", line 574, in dispatch result = self._call_function(**self.params) File "/opt/odoo/openerp/http.py", line 310, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/openerp/http.py", line 307, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo/openerp/http.py", line 803, in __call__ return self.method(*args, **kw) File "/opt/odoo/openerp/http.py", line 403, in response_wrap response = f(*args, **kw) File "/opt/odoo/addons/web/controllers/main.py", line 944, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/odoo/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/opt/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/calendar/calendar.py", line 306, in get_attendee_detail meeting = self.pool['calendar.event'].browse(cr, uid, get_real_ids(meeting_id), context=context) File "/opt/odoo/addons/calendar/calendar.py", line 51, in get_real_ids return calendar_id2real_id(ids) File "/opt/odoo/addons/calendar/calendar.py", line 46, in calendar_id2real_id return calendar_id and int(calendar_id) or calendar_id ValueError: invalid literal for int() with base 10: 'one2many_v_id_215'

abdallah ghrir
on 10/1/15, 5:09 AM
0
abdallah ghrir
On 10/1/15, 4:54 AM

Odoo Server Error Traceback (most recent call last): File "/opt/odoo/openerp/http.py", line 537, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/openerp/http.py", line 574, in dispatch result = self._call_function(**self.params) File "/opt/odoo/openerp/http.py", line 310, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/openerp/http.py", line 307, in checked_call return self.endpoint(*a, **kw) File "/opt/odoo/openerp/http.py", line 803, in __call__ return self.method(*args, **kw) File "/opt/odoo/openerp/http.py", line 403, in response_wrap response = f(*args, **kw) File "/opt/odoo/addons/web/controllers/main.py", line 944, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/odoo/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/opt/odoo/openerp/api.py", line 241, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/calendar/calendar.py", line 306, in get_attendee_detail meeting = self.pool['calendar.event'].browse(cr, uid, get_real_ids(meeting_id), context=context) File "/opt/odoo/addons/calendar/calendar.py", line 51, in get_real_ids return calendar_id2real_id(ids) File "/opt/odoo/addons/calendar/calendar.py", line 46, in calendar_id2real_id return calendar_id and int(calendar_id) or calendar_id ValueError: invalid literal for int() with base 10: 'one2many_v_id_215'

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 9/30/15, 10:43 AM
Seen: 558 times
Last updated: 10/1/15, 6:44 AM