Odoo Help


This community 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.


How use Orm Method to retrieve data from hr_employee?

mirko lazzarini
on 10/14/13, 12:34 PM 438 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'"

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


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