Browse Source

Fixed PEP8 warning: line too long

pull/52/head
cellsnake 9 years ago
parent
commit
be2689f567
  1. 9
      pos_remove_pos_category/product.py

9
pos_remove_pos_category/product.py

@ -58,11 +58,15 @@ class ProductCategory(models.Model):
@api.multi @api.multi
def _get_image(self): def _get_image(self):
return dict((rec.id, tools.image_get_resized_images(rec.image)) for rec in self)
return dict(
(rec.id, tools.image_get_resized_images(rec.image)) for rec in
self)
@api.one @api.one
def _set_image(self): def _set_image(self):
return self.write({'image': tools.image_resize_image_big(self.image_medium)})
return self.write(
{'image': tools.image_resize_image_big(self.image_medium)})
_auto_end_original = models.BaseModel._auto_end _auto_end_original = models.BaseModel._auto_end
@ -99,4 +103,5 @@ def _auto_end(self, cr, context=None):
self._foreign_keys = foreign_keys self._foreign_keys = foreign_keys
return _auto_end_original(self, cr, context=context) return _auto_end_original(self, cr, context=context)
models.BaseModel._auto_end = _auto_end models.BaseModel._auto_end = _auto_end
Loading…
Cancel
Save