How to call methods in models from controllers
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
2
Replies
925
Views
Hello Christding
You can call methods from models with first fetching records from database then calling methods on it
EX:
partners = request.env['res.partner'].search[()] //use domain according your conditionThanks
partners.method_name(args)
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