Odoo Help

0

Return value and warning togather with onchange method desen't working with v8 api coding standard! How to make it work?

By
Anil R. Kesariya
on 4/20/15, 4:19 AM 675 views

Hello everyone,

How we can return value with warning with api coding standard.

I have used this decorator.

     api.onchange('fields')


1) returned the warning using Warning class. before write the value of fields using self couldn't work.

2) Used the old standard , return the dictionary with both information togather, values and warning doesn't works.


Is there any ways to achieve this in v8 coding standard. in old coding standard its working perfectly, I believe it should also work in v8.  does anybody has idea about this?

Thanks in advance,

Anil.



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: 4/20/15, 4:19 AM
Seen: 675 times
Last updated: 9/15/17, 1:19 AM