Error en lado cliente. TypeError: d.error is undefined

Bug #1264544 reported by Pedro Esteban Arroyo Maureira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Hello dear,

I have a small problem with me is already complicating a requirement. need to override the method of sale_stock product_id_change module and change the message displayed advising that no stock is available. what's complicating me is I have to add a table with the stock of the product in question in all the wineries in the company.
to do this I'm trying to display a view that did test

<field name="name">tester.view</field>
<field name="model">config.integracion</field>
<field name="arch" type="xml">
<form string="Seteo datos conexion ws">
<label string="test"></label>
</form>
</field>
</record>

and to call it I have the following python code:

cr.execute('select id,name from ir_ui_view where name=%s and type=%s', ('tester.view', 'form'))
view_res2 = cr.fetchone()[0]
if res['warning']:
warning = {
'type': 'ir.actions.act_window',
'name': 'Test',
'context': context,
'view_type': 'form',
"view_mode": 'form',
'res_model':'config.integracion',
'type': 'ir.actions.act_window',
'views': [(view_res2,'form')],
'view_id': False,
'title':'Atencion',

}
res["warning"] = warning
res["value"] =(resultado a devolver)
return res

by the server side I have no errors. but if the client side. and do not know how to fix it or debug it.

If I can help I would appreciate.

Greetings.

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.