Commit f23483d8 by François C.

Merge branch '3408-archived-products-removed' into 'dev_cooperatic'

bug fixed

See merge request !45
parents 2508d267 0c7efcb0
...@@ -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