Error en lado cliente. TypeError: d.error is undefined
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"
<field name="model"
<field name="arch" type="xml">
<form string="Seteo datos conexion ws">
<label string=
</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.
'name': 'Test',
'context': context,
'view_type': 'form',
"view_mode": 'form',
'res_model'
'type': 'ir.actions.
'views': [(view_
'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.