[hub] set first user's password in marketplace users

This commit is contained in:
Prateeksha Singh
2018-08-31 20:42:48 +05:30
parent ea2b9cbd1c
commit c726fce4b1
4 changed files with 9 additions and 16 deletions

View File

@@ -19,8 +19,7 @@ const ProfileDialog = (title = __('Edit Profile'), action={}) => {
.then(company => {
dialog.set_values({
country: company.country,
currency: company.default_currency,
company_email: company.email
currency: company.default_currency
});
});
}
@@ -28,8 +27,8 @@ const ProfileDialog = (title = __('Edit Profile'), action={}) => {
},
{
fieldname: 'company_email',
label: __('Company Email'),
fieldtype: 'Data'
label: __('Email'),
fieldtype: 'Read Only'
},
{
fieldname: 'users',
@@ -81,8 +80,6 @@ const ProfileDialog = (title = __('Edit Profile'), action={}) => {
dialog.fields_dict.users.set_data(users);
});
dialog.set_values(initial_values);
// Post create
const default_company = frappe.defaults.get_default('company');
dialog.set_value('company', default_company);