Browse Source

[FIX] Fixed travis CI log.

Hetal Zala 7 years ago
parent
commit
5ca97a4e86
2 changed files with 3 additions and 1 deletions
  1. 2 1
      mass_editing/models/ir_model_fields.py
  2. 1 0
      mass_editing/models/mass_object.py

+ 2 - 1
mass_editing/models/ir_model_fields.py

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

+ 1 - 0
mass_editing/models/mass_object.py

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