Odoo Help


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.


how to check if an record has children ?

on 5/25/16, 12:02 PM 188 views

Hello i have a question about checking records if the have children records

elaborate your query

Prakash Sharma
on 5/26/16, 3:41 AM

Bejaoui Souheil

--Bejaoui Souheil--
| 2 1 4
Sousse, Tunisia
--Bejaoui Souheil--

Odoo developer,  functional and technical consultant


Bejaoui Souheil
On 8/13/16, 5:59 AM


This how you can do:

child_ids = self.search([('parent_id','=',self.id)])
if child_ids:
     return True
     return False

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)


Asked: 5/25/16, 12:02 PM
Seen: 188 times
Last updated: 8/13/16, 5:59 AM