[6.1 trunk] action_attrs is undefined

Bug #933781 reported by Bogdan Stanciu
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Invalid
Undecided
Unassigned
OpenUpgrade Server
Fix Committed
Low
Stefan Rijnhart (Opener)

Bug Description

hello,

after a successful login, when clicking on the 'Settings' button, I get an error window with the following:

action_attrs is undefined

http://localhost:8069/web/webclient/js?mods=wiki,web_process,hr,plugin_thunderbird,edi,account_voucher,web_calendar,base,point_of_sale,account_accountant,base_postcode,web_mobile,purchase,web_diagram,knowledge,hr_timesheet_sheet,web_graph,mrp,sale,web_kanban,project,web_livechat,web_dashboard,web_gantt,mail,stock,crm,web_tests:14670

the log doesn't show anything...

ubuntu 11.10 with ff 10.0.1 and/or opera 11.61

regards,
Bogdan

Related branches

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote : Re: [Bug 933781] [NEW] [6.1 trunk] action_attrs is undefined

Yes confirming, looks like a nasty last minute 6.1 regression.
On Feb 16, 2012 7:40 PM, "Bogdan Stanciu" <email address hidden>
wrote:

> Public bug reported:
>
> hello,
>
> after a successful login, when clicking on the 'Settings' button, I get
> an error window with the following:
>
> action_attrs is undefined
>
>
> http://localhost:8069/web/webclient/js?mods=wiki,web_process,hr,plugin_thunderbird,edi,account_voucher,web_calendar,base,point_of_sale,account_accountant,base_postcode,web_mobile,purchase,web_diagram,knowledge,hr_timesheet_sheet,web_graph,mrp,sale,web_kanban,project,web_livechat,web_dashboard,web_gantt,mail,stock,crm,web_tests:14670
>
> the log doesn't show anything...
>
> ubuntu 11.10 with ff 10.0.1 and/or opera 11.61
>
> regards,
> Bogdan
>
> ** Affects: openerp-web
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of OpenERP
> Drivers, which is subscribed to OpenERP Web.
> https://bugs.launchpad.net/bugs/933781
>
> Title:
> [6.1 trunk] action_attrs is undefined
>
> Status in OpenERP Web:
> New
>
> Bug description:
> hello,
>
> after a successful login, when clicking on the 'Settings' button, I
> get an error window with the following:
>
> action_attrs is undefined
>
>
> http://localhost:8069/web/webclient/js?mods=wiki,web_process,hr,plugin_thunderbird,edi,account_voucher,web_calendar,base,point_of_sale,account_accountant,base_postcode,web_mobile,purchase,web_diagram,knowledge,hr_timesheet_sheet,web_graph,mrp,sale,web_kanban,project,web_livechat,web_dashboard,web_gantt,mail,stock,crm,web_tests:14670
>
> the log doesn't show anything...
>
> ubuntu 11.10 with ff 10.0.1 and/or opera 11.61
>
> regards,
> Bogdan
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openerp-web/+bug/933781/+subscriptions
>

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

I fear I'm going to need some more information, because the only piece of code mentioning action_attrs is core dashboard code and has not changed since mid-november.

* What addons have you installed?
* Have you altered the Settings/Administration dashboard somehow, or altered actions from within it
* Is this a new database or a preexisting one? From where, a 6.0 or an earlier 6.1 trunk?
* What user are you logging under as, any special rights setup?
* If you log in using `debug` mode (add `?debug` after `/home` in the URL), what error do you get?

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Stuart Longland (redhatter) wrote :

I found this when migrating an OpenERP 6.0 database to 6.1. Long story short, the administration dashboard hardcodes a couple of IDs when the "board" module is initialised. Not sure why, but for some reason the IDs get created in the table ir_act_client, but the corresponding actions get missed in ir_actions.

I fixed it with the following SQL:

        -- Fix up ir.action.client actions: see https://bugs.launchpad.net/openerp-web/+bug/933781 --
        INSERT INTO ir_actions (
                id, name, type
        ) SELECT id,
                        name,
                        type
                FROM ir_act_client
                WHERE id NOT IN ( SELECT id
                                        FROM ir_actions
                                        WHERE type='ir.actions.client'
                );

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenERP Web because there has been no activity for 60 days.]

Changed in openerp-web:
status: Incomplete → Expired
Revision history for this message
Robajz.info (robert-sevcik) wrote :

Hello, can we reopen this bug? I also have upgraded a DB from 6.0 to 6.1 and got this error. It is not a big issue since you can still navigate to menus inside "Settings" but it is certainly disturbing.

* What addons have you installed?
=# select name, state from ir_module_module where state not in ('uninstalled');
     name | state
--------------+-----------
 board | installed
 base_setup | installed
 web_livechat | installed
 base | installed
 camara | installed
(5 rows)

* Have you altered the Settings/Administration dashboard somehow, or altered actions from within it
It is possible, someone else was dealing with the database before me. How can I find out?

* Is this a new database or a preexisting one? From where, a 6.0 or an earlier 6.1 trunk?
Upgrade from 6.0 to 6.1

* What user are you logging under as, any special rights setup?
admin, we have restricted delete permissions

* If you log in using `debug` mode (add `?debug` after `/home` in the URL), what error do you get?
Uncaught TypeError: Cannot read property 'view_mode' of undefined
http://localhost:8069/web_dashboard/static/src/js/dashboard.js?debug=1329271234.0:150

Without debug:
Uncaught TypeError: Cannot read property 'view_mode' of undefined
http://localhost:8069/web/webclient/js?mods=web_diagram,web_mobile,web_graph,web_process,web_kanban,web_calendar,web_livechat,base,web_tests,web_gantt,web_dashboard,camara:18917

The workaround in #6 worked for me - no more error messages and I can see the dashboard.

Changed in openerp-web:
status: Expired → Confirmed
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Robajz,

We can not consider this type of migration issue as a bug. For these type of issues you have to contact our support/opw team at <email address hidden>. They will definitely helps you.

According to our bug management policy we can not consider migration issues. That's why I am closing this issue.

Thank you!

Changed in openerp-web:
status: Confirmed → Invalid
Changed in openupgrade-server:
status: New → Confirmed
status: Confirmed → Triaged
importance: Undecided → Low
assignee: nobody → Stefan Rijnhart (Therp) (stefan-therp)
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.