Browse Source

updates for:

./pos_remove_pos_category/product.py:55:1: W293 blank line contains whitespace

./pos_remove_pos_category/product.py:60:20: F821 undefined name 'tools'
pull/52/head
cellsnake 9 years ago
parent
commit
c892973e6e
  1. 4
      pos_remove_pos_category/product.py

4
pos_remove_pos_category/product.py

@ -20,7 +20,7 @@
##############################################################################
import sys
from openerp import models, fields, api
from openerp import models, fields, api, tools
class ProductTemplate(models.Model):
@ -52,7 +52,7 @@ class ProductCategory(models.Model):
help="Check if you want this category to appear in Point Of Sale.\n"
"If you uncheck, children categories will becomes invisible too, "
"whatever their checkbox state.")
@api.one
@api.constrains('image')
def _save_image_medium(self):

Loading…
Cancel
Save