Public bug reported:
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.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1264544
Title:
Error en lado cliente. TypeError: d.error is undefined
Status in OpenERP Addons (modules):
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1264544/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help : https://help.launchpad.net/ListHelp