[MERGE] forward port branch 8.0 up to fbdac9c
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user