Odoo Help

0

0
2 Answers
0
Igor Kurilko
11/7/17 10:20

You can try this:

     self.env['sale.order'].browse(record_to_change_id).state = 'test'

0
Avatar

Mohammed Amal

--Mohammed Amal--

2169
| 6 3 9
Malappuram, India
--Mohammed Amal--

Email : mohammedamal.n@gmail.com

Blog: https://www.blogger.com/profile/14877879550922602186

Mohammed Amal
11/7/17 08:04

Hi,

You can give compute method and return value to your field. It will show your value in the field and will not call write method.

Ask a Question
Writer
Keep Informed
1 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now