[moduleview] fix permissions
This commit is contained in:
parent
26a21074b4
commit
1c356ff20d
2 changed files with 3 additions and 4 deletions
|
|
@ -35,13 +35,14 @@
|
|||
</div>
|
||||
<hr>
|
||||
<h3>{%= __("Import") %}</h3>
|
||||
<p class="text-muted">{%= __("Update the template and save in CSV (Comma Separate Values) format before attaching.") %}</p>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="upload-area"></div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="always_insert">
|
||||
{%= __("Insert all records, even if ID matches.") %}
|
||||
{%= __("Always insert, even if ID is given.") %}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe.desk import reportview
|
||||
from frappe.utils import cint
|
||||
from frappe import _
|
||||
|
||||
@frappe.whitelist()
|
||||
|
|
@ -156,7 +154,7 @@ def set_last_modified(data):
|
|||
|
||||
def get_last_modified(doctype):
|
||||
try:
|
||||
last_modified = reportview.execute(doctype, fields=["max(modified)"], as_list=True)[0][0]
|
||||
last_modified = frappe.get_all(doctype, fields=["max(modified)"], as_list=True, limit_page_length=1)[0][0]
|
||||
except Exception, e:
|
||||
if e.args[0]==1146:
|
||||
last_modified = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue