Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
491a547708
@ -11,6 +11,6 @@ def execute():
|
||||
else:
|
||||
webnotes.conn.sql("""update `tab%(parent)s`
|
||||
set %(fieldname)s =
|
||||
if(substr(%(fieldname)s,0,4)='http' or substr(%(fieldname)s, 0, 5)='files',
|
||||
if(substr(%(fieldname)s,1,4)='http' or substr(%(fieldname)s,1,5)='files',
|
||||
%(fieldname)s,
|
||||
concat('files/', %(fieldname)s))""" % f)
|
@ -74,7 +74,7 @@ class DocType(DocTypeNestedSet):
|
||||
for d in self.doc.sub_groups:
|
||||
d.count = get_group_item_count(d.name)
|
||||
|
||||
self.doc.items = get_product_list_for_group(product_group = self.doc.name, limit=20)
|
||||
self.doc.items = get_product_list_for_group(product_group = self.doc.name, limit=100)
|
||||
self.parent_groups = get_parent_item_groups(self.doc.name)
|
||||
self.doc.title = self.doc.name
|
||||
|
||||
|
@ -29,8 +29,8 @@
|
||||
{{ item }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if len(items)==20 %}
|
||||
<div class="alert info">Showing top 20</div>
|
||||
{% if len(items)==100 %}
|
||||
<div class="alert info">Showing top 100 items.</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="alert">No items listed.</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user