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

Save field value on a wizard

By
Francisco Castro
on 12/15/14, 11:58 AM 1,278 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

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3883
| 5 3 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. 

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

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