# -*- coding: utf-8 -*- from openerp.http import request as r def get_stock_location_id(): stock_location = r.env['stock.location'].search([('usage', '=', 'internal')]) return stock_location.id