def ndrysho_status(self):
for rec in self:
if rec.property_id.status != 'active':
rec.statusi = 'blocked'
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
747
Views
Hi,
When you need this to get triggered ? As a compute method, or in an onchange of a variable ? or in default_get or while performing some operations ?
Thanks
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up