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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
2
Cevaplar
3277
Görünümler
Hi,
This how you can do:
child_ids = self.search([('parent_id','=',self.id)])
if child_ids:
return True
else:
return False
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol
elaborate your query