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 | etc.
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): value= 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/14/13, 12:34 PM|
|Seen: 745 times|
|Last updated: 3/16/15, 8:10 AM|