Hello i have a question about checking records if the have children records
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
2
Replies
3279
Tampilan
Hi,
This how you can do:
child_ids = self.search([('parent_id','=',self.id)])
if child_ids:
return True
else:
return False
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar
elaborate your query