[MERGE] forward port branch 8.0 up to fbdac9c

This commit is contained in:
Christophe Simonis
2016-11-22 17:23:24 +01:00
+4 -4
View File
@@ -556,12 +556,12 @@ class website(osv.osv):
def search_pages(self, cr, uid, ids, needle=None, limit=None, context=None):
name = re.sub(r"^/p(a(g(e(/(w(e(b(s(i(t(e(\.)?)?)?)?)?)?)?)?)?)?)?)?", "", needle or "")
name = slugify(name, max_length=50)
res = []
for page in self.enumerate_pages(cr, uid, ids, query_string=name, context=context):
if needle in page['loc']:
res.append(page)
if len(res) == limit:
break
res.append(page)
if len(res) == limit:
break
return res
def kanban(self, cr, uid, ids, model, domain, column, template, step=None, scope=None, orderby=None, context=None):