Odoo Help

0

Save field value on a wizard

By
Francisco Castro
on 12/15/14, 11:58 AM 1,646 views

Hi guys 

How can I save the fields values filled by the user on a wizard into the database?

I want to do a sale order--> confirm sale-->view delivery order-->force availability-->transfer and this wizard appears and I want to save that info

How can I do that?

Another problem is that I cant print any of the field values..... 

P.S.(the apply button class the openerp funtion-->do_detailed_transfe( ) )



but in this case can you give me an example?

Francisco Castro
on 12/16/14, 4:26 AM
1
Michael Pol
On 12/16/14, 5:06 AM

In your  apply1(self, cr, uid, ids, context=None) function you can browse wizard information through ids parameter. You will get active_id and active_model from context parameter. In your case active_id will be sale order id and active model will be sale.order.

Using active_id you can confirm sale order and proceed ahead with flow.

And about saving wizard information atchuthan has given the link.

thx

Francisco Castro
on 12/16/14, 5:15 AM
0

Use models.Model instead of models.TransientModel which are usally used in wizards. 

https://answers.launchpad.net/openobject-server/+question/199414

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