[FIX] website_sale: grid view don't display empty cells
bzr revid: chm@openerp.com-20140307153718-2nlw8mtntfkm7ehu
This commit is contained in:
parent
69237e1c8e
commit
3195913272
|
@ -90,7 +90,7 @@ class table_compute(object):
|
|||
|
||||
for y2 in range(y):
|
||||
for x2 in range(x):
|
||||
self.table[(pos/PPR)+y2][(pos%PPR)+x2] = False
|
||||
self.table[(pos/PPR)+y2][(pos%PPR)+x2] = None
|
||||
self.table[pos/PPR][pos%PPR] = {
|
||||
'product': p, 'x':x, 'y': y,
|
||||
'class': " ".join(map(lambda x: x.html_class, p.website_style_ids))
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
</form>
|
||||
</template>
|
||||
|
||||
<template id="products_cart" name="Shopping cart">
|
||||
<template id="products_cart" name="Product Cell">
|
||||
<div class="ribbon-wrapper">
|
||||
<div class="ribbon btn btn-danger">Sale</div>
|
||||
</div>
|
||||
|
@ -187,7 +187,7 @@
|
|||
|
||||
</td>
|
||||
</t>
|
||||
<td t-if="td_product == None"/>
|
||||
<td t-if="not td_product"/>
|
||||
</t>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue