Explorar el Código

[FIX] Fixed travis CI log.

Hetal Zala hace 7 años
padre
commit
817f3f9333
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      mass_editing/models/ir_model_fields.py
  2. 1 1
      mass_editing/models/mass_object.py

+ 1 - 1
mass_editing/models/ir_model_fields.py

@@ -14,7 +14,7 @@ class IrModelFields(models.Model):
         for domain in args:
             if (len(domain) > 2 and domain[0] == 'model_id' and
                     isinstance(domain[2], basestring) and
-                        list(domain[2][1:-1])):
+                    list(domain[2][1:-1])):
                 model_domain += [('model_id', 'in',
                                   map(int, domain[2][1:-1].split(',')))]
             else:

+ 1 - 1
mass_editing/models/mass_object.py

@@ -94,7 +94,7 @@ class MassObject(models.Model):
         self.unlink_action()
         return super(MassObject, self).unlink()
 
-    @api.one
+    @api.multi
     @api.returns('self', lambda value: value.id)
     def copy(self, default=None):
         if default is None: