Odoo Help


Save field value on a wizard

Francisco Castro
on 12/15/14, 11:58 AM 2,064 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
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.


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

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 12/16/14, 1:47 AM

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


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.


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)


Asked: 12/15/14, 11:58 AM
Seen: 2064 times
Last updated: 3/16/15, 8:10 AM