Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
Open another form GTK Client
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?
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 6/11/13, 11:24 AM |
Seen: 1106 times |
Last updated: 3/16/15, 8:10 AM |