Commits

grasbauer committed b58f52c

Revert reverted change

  • Participants
  • Parent commits bb7fc5f

Comments (0)

Files changed (1)

         })
 
     def create(self, values):
-        if not values.get('template'):
+        if values.has_key('template') and not values['template']:
             values = values.copy()
-            try:values.pop('template')
-            except:pass
+            values.pop('template')
         return super(Product, self).create(values)
 
     def delete(self, ids):