Odoo Help

Welcome!

This community 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.

1

how to open a form from javascript of widget?

By
voathnak lim
on 8/5/13, 11:14 PM 1,686 views

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...

Subscribe

Metrolux Gmbh, Andreas Marpmann
on 6/20/14, 12:07 AM
0
ignatius budi
On 1/30/14, 5:02 AM

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

0
voathnak lim
On 9/5/13, 12:07 AM

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,
 });

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 8/5/13, 11:14 PM
Seen: 1686 times
Last updated: 3/16/15, 8:10 AM