Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Task: Undefined is not an object #1

Open
guii opened this issue Dec 2, 2015 · 5 comments
Open

Project Task: Undefined is not an object #1

guii opened this issue Dec 2, 2015 · 5 comments

Comments

@guii
Copy link

guii commented Dec 2, 2015

Versions
web_gantt: Branch Dev, commit e2b200f
Odoo 9 branch

project_view.xml.txt

Error when opening the gantt view from task:
TypeError: undefined is not an object (evaluating '_.min(group, function(element) {
return element.values[0].from;
}).values')
http://localhost:8069/web_gantt/static/src/js/gantt.js:160
Traceback:

@funbaker
Copy link
Collaborator

funbaker commented Dec 2, 2015

Can you provide me your task data?
Alternatively you can insert console.log(grouped); in line 156 and paste the results here.

@guii
Copy link
Author

guii commented Dec 2, 2015

Please find a dump of my task table.
task_data.txt
Edit:
I added console.log(grouped); on line 156 but I don't see the difference with or without it in the logs.
Anyway, here we go for the logs:
logs.txt

@funbaker
Copy link
Collaborator

funbaker commented Dec 3, 2015

I mean the client-side javascript log.
the task table looks fine to me, though i cannot import SQL query results :)

@guii
Copy link
Author

guii commented Dec 3, 2015

The funny thing is that I switched to Chrome to get the javascript logs and it worked!
My problem appears to be only on Safari.
here is the logs from Safari console:
transform_dataweb.assets_backend.js:71582{Start here to discover Odoo: Array}
web.assets_backend.js:71586TypeError: undefined is not an object (evaluating '_.min(group,function(element){return element.values[0].from;}).values')
(anonymous function)web.assets_backend.js:71531
forEachweb.assets_common.js:11:658
transform_dataweb.assets_backend.js:71526
name_get_doneweb.assets_backend.js:71514
(anonymous function)
fireweb.assets_common.js:643:304
fireWithweb.assets_common.js:648:202
(anonymous function)web.assets_common.js:650
fireweb.assets_common.js:643:304
fireWithweb.assets_common.js:648:202
(anonymous function)web.assets_common.js:649:874
fireweb.assets_common.js:643:304
fireWithweb.assets_common.js:648:202
(anonymous function)web.assets_common.js:649:874
fireweb.assets_common.js:643:304
fireWithweb.assets_common.js:648:202
doneweb.assets_common.js:1039:106
callbackweb.assets_common.js:1059

@funbaker
Copy link
Collaborator

funbaker commented Dec 4, 2015

Alright, ill do some cross-browser tests then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants