Odoo Aide

0

1
4 Answers
3
Avatar

ayman mohammed adam

--ayman mohammed adam--
785
| 4 3 7
Riyadh, Arabie Saoudite
--ayman mohammed adam--


ayman mohammed adam
06/09/2016 05:57

dear jithin

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


I hope I helped you ...

2 Comments
Jithin
06/09/2016 06:25

thanks ayman i got the answer.

@api.model to @api.multi

ayman mohammed adam
06/09/2016 07:58

ok

1
Divyang Jariwala
27/10/2016 01:07

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. :) 

Poser une question
Writer
Keep Informed
1 Abonné(e)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