[6.1] AttributeError : no attribute startswith

Bug #1075905 reported by Pollet Alexandre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Hello,

There is a bug on GTK client in the context keys.

Sometimes (and i don't know why), there is a key in the context dict which is an integer.

The integer is an id of the wizard which is used to open a form view (with a act_window return)...

I have a crash with the message:
"AttributeError: 'int' object has no attribute 'startswith' "

So I make a patch to check the type of the key in some functions causing the exception.

Thank's to apply the patch (or a better one) to the branch.

Revision history for this message
Pollet Alexandre (a-pollet) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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