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

populate a new windows based on context

By
Adrian
on 11/18/14, 12:19 PM 437 views

i have view wich has a button that execute this code:

context['subscription_tmpl_id'] = data.id
        result = {
                  'view_type': 'form',
                  'view_mode': 'form',
                  'view_id' : self.pool.get('ir.ui.view').search(cr, uid, [ ('name', '=', 'esfyt.subscription.new.step3')]),
                  'res_model' : 'esfyt.subscription.new.ammount',
                  'type' : 'ir.actions.act_window',
                  'target' : 'new',
                  'name' : 'Your Subscription ammount',
                  'context' : context,
        }
        return result

in that new windowsi would lik to read the context and popluate the views field with it. in this instance the `subscription_tmpl_id`.

How can I do this?

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: 11/18/14, 12:19 PM
Seen: 437 times
Last updated: 3/16/15, 8:10 AM