Commit 0c7efcb0 by Félicie

bug fixed

parent 2508d267
...@@ -31,7 +31,7 @@ class productShelfs(models.Model): ...@@ -31,7 +31,7 @@ class productShelfs(models.Model):
sql = """ sql = """
SELECT SELECT
s.*, s.*,
(SELECT count(*) FROM product_product WHERE shelf_id = s.id) as p_nb (SELECT count(*) FROM product_product WHERE shelf_id = s.id AND active = true) as p_nb
FROM product_shelfs as s FROM product_shelfs as s
""" """
self.env.cr.execute(sql) self.env.cr.execute(sql)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment