Odoo Help

0

populate a new windows based on context

By
Adrian
on 11/18/14, 12:19 PM 555 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?

About This Community

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 11/18/14, 12:19 PM
Seen: 555 times
Last updated: 3/16/15, 8:10 AM