Advertisement
tosink

Pledge Lines

Nov 13th, 2019
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1.  
  2. subscription = env['sale.subscription.line'].browse(int(line_dict['analytic_account_id']))
  3. line_dict_update['analytic_account_id'] = subscription['id']
  4.  
  5. product = env['product.product'].search([('default_code','=',line_dict['product_id'])], limit=1)
  6. line_dict_update['product_id'] = product['id']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement