Odoo Help


How use Orm Method to retrieve data from hr_employee?

mirko lazzarini
on 10/14/13, 12:34 PM 776 views

I'm creating a method on my custom module.py to open hr_employee table and retrive work email about employee with a particular Tags... So i write this but doesn't function... :-(

def req_email_to(self, cr, uid, ids, context=None):
    id_category=self.pool.get('hr.employee.category').search(cr, uid, [('name', '=', 'CEO')], context=context)
    id_emp=self.pool.get('hr.employee').search(cr, uid, [(id_category, 'in', 'employee_ids')], context=context)        
    return value

def req_aut(self, cr, uid, ids, context=None):
    res= self.req_email_to(self, cr, uid, ids)

I get an error "AttributeError: 'list' object has no attribute 'split'"

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 10/14/13, 12:34 PM
Seen: 776 times
Last updated: 3/16/15, 8:10 AM