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.

0

Open openerp form in a modal

By
smorele
on 2/18/16, 2:19 AM 323 views

I try to open an openerp form in a modal in javascript with:

create_ticket: function (event) {
            event.stopPropagation();
            var action = {
                type: 'ir.actions.act_window',
                res_model: 'abc.ticket',
                view_type: 'form',
                view_mode: 'form',
                views: [[false, 'form']],
                target: 'new',
            };
            instance.client.action_manager.do_action(action);
        },

but unfortunately, it opens the form but it's not in edit mode, then I cannot fill the form. Did I missed something ?

0

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


Ahmed M.Elmubarak
On 2/18/16, 3:01 AM

Hi,

Try:

target: 'inline'

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

1 follower(s)

Stats

Asked: 2/18/16, 2:19 AM
Seen: 323 times
Last updated: 2/18/16, 3:01 AM