[fix] base_control.js for website
This commit is contained in:
parent
17855fad80
commit
d2f82d7bdc
1 changed files with 2 additions and 1 deletions
|
|
@ -101,7 +101,8 @@ frappe.ui.form.Control = Class.extend({
|
|||
},
|
||||
show_translatable_button(value) {
|
||||
// Disable translation non-string fields or special string fields
|
||||
if (!frappe.model.can_write('Translation')
|
||||
if (!frappe.model
|
||||
|| !frappe.model.can_write('Translation')
|
||||
|| !this.frm
|
||||
|| !this.doc
|
||||
|| !this.df.translatable
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue