Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use search function in OpenERP(Odoo)?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 476
    Comment on it

    In search function returns directly a RecordSet.
    In below code i have explain search function.

    def LinkedIn_check_similar_partner(self, cr, uid, LinkedIn_datas, context=None):
            res = []
            res_partner = self.pool.get('res.partner')
            for linkedin_data in linkedin_datas:
                partner_ids = res_partner.search(cr, uid, ["|", ("linkedin_id", "=", linkedin_data['id']), 

    You can do a search using env

     partner_ids = self.env(cr, uid, ["|", ("linkedin_id", "=", linkedin_data['id']),
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: