Merge branch 'master' into develop
This commit is contained in:
commit
9ecfebd38c
6 changed files with 32 additions and 15 deletions
|
|
@ -13,7 +13,7 @@ import os, sys, importlib, inspect, json
|
|||
from .exceptions import *
|
||||
from .utils.jinja import get_jenv, get_template, render_template
|
||||
|
||||
__version__ = '7.1.2'
|
||||
__version__ = '7.1.3'
|
||||
__title__ = "Frappe Framework"
|
||||
|
||||
local = Local()
|
||||
|
|
|
|||
|
|
@ -4,19 +4,24 @@
|
|||
frappe.ui.form.on('Bulk Update', {
|
||||
refresh: function(frm) {
|
||||
frm.page.set_primary_action(__('Update'), function() {
|
||||
frappe.call({
|
||||
method: 'frappe.desk.doctype.bulk_update.bulk_update.update',
|
||||
args: {
|
||||
doctype: frm.doc.document_type,
|
||||
field: frm.doc.field,
|
||||
value: frm.doc.update_value,
|
||||
condition: frm.doc.condition,
|
||||
limit: frm.doc.limit
|
||||
},
|
||||
callback: function() {
|
||||
frappe.hide_progress();
|
||||
}
|
||||
});
|
||||
if(!frm.doc.update_value){
|
||||
frappe.throw(__('Field "value" is mandatory. Please specify value to be updated'));
|
||||
}
|
||||
else{
|
||||
frappe.call({
|
||||
method: 'frappe.desk.doctype.bulk_update.bulk_update.update',
|
||||
args: {
|
||||
doctype: frm.doc.document_type,
|
||||
field: frm.doc.field,
|
||||
value: frm.doc.update_value,
|
||||
condition: frm.doc.condition,
|
||||
limit: frm.doc.limit
|
||||
},
|
||||
callback: function() {
|
||||
frappe.hide_progress();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
document_type: function(frm) {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@ frappe.ui.form.on('Integration Service', {
|
|||
}
|
||||
},
|
||||
|
||||
service: function(frm){
|
||||
frm.events.setup_custom_buttons(frm);
|
||||
frm.events.setup_service_details(frm);
|
||||
},
|
||||
|
||||
setup_custom_buttons: function(frm) {
|
||||
frm.add_custom_button(__("{0} Settings", [frm.doc.service]), function(){
|
||||
frappe.set_route("List", frm.doc.service + " Settings");
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ frappe.ui.form.on('Dropbox Settings', {
|
|||
if (frm.doc.app_access_key && frm.doc.app_secret_key && frm.doc.dropbox_access_key && frm.doc.dropbox_access_secret) {
|
||||
frm.add_custom_button(__("Take Backup Now"), function(frm){
|
||||
frappe.call({
|
||||
method: "frappe.integrations.dropbox_integration.take_backup",
|
||||
method: "frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backup",
|
||||
freeze: true
|
||||
})
|
||||
}).addClass("btn-primary")
|
||||
|
|
|
|||
|
|
@ -67,6 +67,9 @@
|
|||
.filter_field {
|
||||
width: 65% !important;
|
||||
}
|
||||
.filter_field .frappe-control {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
.list-row {
|
||||
padding: 9px 15px;
|
||||
|
|
|
|||
|
|
@ -88,6 +88,10 @@
|
|||
|
||||
.filter_field {
|
||||
width: 65% !important;
|
||||
|
||||
.frappe-control {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue