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
- Apskaita
- Atsarga
- PoS
- Project
- MRP
This question has been flagged
2
Replies
3250
Rodiniai
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!
Registracija
elaborate your query