Odoo Help


Open another form GTK Client

on 6/11/13, 11:24 AM 804 views

Hello. I solved opening the form, but I only work in web client and gtk client fails.

cr.execute("select * from ir_model_data where name = 'excel_dembarque_form'")
tree_obj_id = cr.dictfetchall()[0]['res_id']
cr.execute("select * from ir_model_data where name = 'excel_dembarque_form'")
form_obj_id = cr.dictfetchall()[0]['res_id']

return {
'domain': str(domain),
'name': 'Ver Datos Cargados',
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'excel.datosembarque',
'views': [(tree_obj_id,'tree'),(form_obj_id,'form')],
'type': 'ir.actions.act_window'

At the end of a file upload form based on some parameters and should be uploaded and inserted into another table data differently, and once the information has been inserted, it should be displayed.

When I load, and recorded in the table and then show you the contents of this table doing a return with the data in that form. This on the Web client gives no problems and it works perfectly, but in the GTK client peta and returns this error:

Traceback (most recent call last):
File "widget \ view \ form_gtk \ parser.pyo", line 123, in Button_Clicked
File "widget \ model \ record.pyo", line 382, in get_button_action
File "modules \ action \ main.pyo", line 147, in _exec_action
File "modules \ gui \ window \ __init__.pyo", line 48, in create
File "modules \ gui \ window \ form.pyo", line 135, in __ init__
File "modules \ gui \ window \ form.pyo", line 323, in sig_new
File "widget \ screen \ screen.pyo", line 671, in new
File "widget \ screen \ screen.pyo", line 819, in display
File "widget \ view \ form.pyo", line 422, in display
File "widget \ view \ form.pyo", line 49, in display
File "widget \ model \ field.pyo", line 149, in attrs_set
File "tools \ __init__.pyo", line 85, in calc_condition
TypeError: 'bool' object is unsubscriptable

Any can help me please?

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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 6/11/13, 11:24 AM
Seen: 804 times
Last updated: 3/16/15, 8:10 AM