Odoo Ayuda

0

0
1 Answer
0
Avatar

ayman mohammed adam

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


ayman mohammed adam
5/9/16 6:38

dear Wizardz,

 your question is not clear, but if i understand you can get the data by call the browse method that receive id or list of ids you can got by using search method.

then when you browse the record or records you can get any value of any fields of that object by using dotted notation.

I hope I helped you.

 
2 Comments
wizardz
6/9/16 2:54

how is this browse function working ?

ayman mohammed adam
6/9/16 4:06

firstly you can make object if you need to get data from other module

model_obj= self.pool.get('your model')

secondly if you know the id you can directly call browse record:

record= model_obj.browse(cr, uid, your id, context=context)

then record. any field.

if you can not know the id you can make search :

rec_ids= model_obj.search(cr, uid, [('your field','comparison',value)], context=context)

this mean [('your field','comparison',value)] your domain

for record in model_obj.browse(cr, uid, rec_ids, context=contect)

record. any fields

I hope i helped you...

Realizar una pregunta
Writer
Etiquetas
Keep Informed
1 seguidor(es)
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