[FIX] website_sale: in the product grid, a product must have min size 1 and max size 4

This commit is contained in:
Denis Ledoux 2014-05-27 16:11:27 +02:00
parent be0ce80f5f
commit 63b7f678f3
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ class table_compute(object):
index = 0
maxy = 0
for p in products:
x = p.website_size_x
y = p.website_size_y
x = min(max(p.website_size_x, 1), PPR)
y = min(max(p.website_size_y, 1), PPR)
if index>PPG:
x = y = 1