소스 검색

Update ir_model_fields.py

Serpent Consulting Services Pvt Ltd 7 년 전
부모
커밋
1d6636b87b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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',