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.

0

Open another form GTK Client

By
Joaquin
on 6/11/13, 11:24 AM 755 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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