Odoo Aide

0

0
3 Answers
1
Ramsad pv
11/07/2018 05:17

Hi Supreeth , 


@api.multi

this method decorator is used to work with a list of id ,
while printing  self.id  you will get a list of ids 


use  @api.one  decorator  to work with a single record ,

0
Mohit Ghodasara (mgh)
11/07/2018 00:51

try self.id

it is your current record id 

1 Commentaires
supreeth
11/07/2018 01:35

thanks, i have tried this.. iam not able to get current ID? i printed and value and tried

Poser une question
Writer
Étiquettes
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now