Odoo Help

0
4 Answers
3
Avatar

ayman mohammed adam

--ayman mohammed adam--
--ayman mohammed adam--


ayman mohammed adam
9/6/16, 5:57 AM

dear jithin

I think you must replace @api.model to @api.one


I hope I helped you ...

2 Comments
Jithin
9/6/16, 6:25 AM

thanks ayman i got the answer.

@api.model to @api.multi

ayman mohammed adam
9/6/16, 7:58 AM

ok

1
Divyang Jariwala
10/27/16, 1:07 AM

Hello Jithin

Simplification for you doubt.

@api.model is used when you don't have a record set (ID of record) in self.
@api.multi or @api.one is used when you have a record set with self.

I Hope now you are clear with this. :) 

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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now