Odoo Help

1

Widget Handler in the custom module goes back to normal after saving form?

By
DM
on 2/10/15, 10:28 AM 725 views

Hello i tryed to use widget handler to my custom module. Everything seems ok i can drag things around but then i click save all the order goes back to normal. Any ideas?

Regards Darius

1
Shawn Varghese
On 2/10/15, 12:34 PM

In your XML, you would have enabled the handle widget on a certain field. In your .py file, mention that field in _order , (usually included after _columns) :

_order='your_field_name'

You might also want to specify a default value for it:

_defaults={'your_field_name':2}

Let me know if it doesn't work.
 

1
DM
On 2/11/15, 4:01 AM

Thanks! it worked :)

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: 2/10/15, 10:28 AM
Seen: 725 times
Last updated: 10/23/15, 9:18 AM