Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
7729 Vistas

hello everyone.

I need to open a link of product form when i click on bom lines and i decide to use JavaScript. and i use window.open but it's not working well. could anyone help me please...

Avatar
Descartar
Autor Mejor respuesta

I found solution by using ajax to request to load another form.

self.do_action({
             views: [[false, 'form']],
             view_type: 'form',
             view_mode: 'form',
             res_model: 'product.product',
             type: 'ir.actions.act_window',
             target: 'current',
              res_id: product_id,
 });
Avatar
Descartar
Mejor respuesta

Voathnak,

Can u post the full code for opening openerp url using ajax? i'm totally "lost" in php, mainly i write my code using java..

Thanks..

Ignatius

Avatar
Descartar