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.

1

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 523 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.



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: 4/20/15, 4:19 AM
Seen: 523 times
Last updated: 5/29/15, 9:18 AM