SHARE
TWEET

Untitled

a guest Jun 26th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import json
  2. p_ids = []
  3. partners = env['res.partner'].search([('nimble_data', '!=', None)])
  4. for partner in partners:
  5.     area = json.loads(partner.nimble_data)['areas']
  6.     if area == 'Rental':
  7.         p_ids.append(partner.id)
  8. print(p_ids)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top