Explorar o código

Update ir_model_fields.py

Serpent Consulting Services Pvt Ltd %!s(int64=7) %!d(string=hai) anos
pai
achega
1d6636b87b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      mass_editing/models/ir_model_fields.py

+ 2 - 1
mass_editing/models/ir_model_fields.py

@@ -12,7 +12,8 @@ class IrModelFields(models.Model):
     def search(self, args, offset=0, limit=0, order=None, count=False):
         model_domain = []
         for domain in args:
-            if (len(domain) > 2 and domain[0] == 'model_id' and
+            if (len(domain) > 2 and
+                domain[0] == 'model_id' and
                 isinstance(domain[2], basestring) and
                 list(domain[2][1:-1])):
                 model_domain += [('model_id', 'in',