Skip to Content
Menu
This question has been flagged
2 Replies
925 Views

How to call methods in models from controllers

Avatar
Discard
Best Answer

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 condition
partners.method_name(args)
Thanks

Avatar
Discard
Author Best Answer

thanks

Avatar
Discard