|  | @@ -25,7 +25,7 @@ from lxml import etree
 | 
	
		
			
				|  |  |  class ir_model_fields(models.Model):
 | 
	
		
			
				|  |  |      _inherit = 'ir.model.fields'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @api.v7
 | 
	
		
			
				|  |  | +    @api.returns('self') #If we keep @api.v7, we have to add @api.v8 code too.
 | 
	
		
			
				|  |  |      def search(self, cr, uid, args, offset=0, limit=0, order=None, context=None, count=False):
 | 
	
		
			
				|  |  |          model_domain = []
 | 
	
		
			
				|  |  |          for domain in args:
 | 
	
	
		
			
				|  | @@ -35,6 +35,18 @@ class ir_model_fields(models.Model):
 | 
	
		
			
				|  |  |                  model_domain.append(domain)
 | 
	
		
			
				|  |  |          return super(ir_model_fields, self).search(cr, uid, model_domain, offset=offset, limit=limit, order=order, context=context, count=count)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    
 | 
	
		
			
				|  |  | +#     @api.v8
 | 
	
		
			
				|  |  | +#     def search(self, args, offset=0, limit=0, order=None, count=False):
 | 
	
		
			
				|  |  | +#         model_domain = []
 | 
	
		
			
				|  |  | +#         for domain in args:
 | 
	
		
			
				|  |  | +#             if domain[0] == 'model_id' and domain[2] and type(domain[2]) != list:
 | 
	
		
			
				|  |  | +#                 model_domain += [('model_id', 'in', map(int, domain[2][1:-1].split(',')))]
 | 
	
		
			
				|  |  | +#             else:
 | 
	
		
			
				|  |  | +#                 model_domain.append(domain)
 | 
	
		
			
				|  |  | +#         return super(ir_model_fields, self).search(model_domain, offset=offset, limit=limit, order=order, count=count)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  ir_model_fields()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  class mass_object(models.Model):
 |