[FIX] website_sale: in the product grid, a product must have min size 1 and max size 4
This commit is contained in:
parent
be0ce80f5f
commit
63b7f678f3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue