Giter Site home page Giter Site logo

whitelabel's Introduction

ERPNext Whitelabel

This app has the following features:

  • Change App logo
  • Change Favicon
  • Change Splash Image
  • Hide Help Menu
  • Hide "powered by" text from the website
  • Remove welcome page
  • Update welcome blog post
  • Adjust App logo size from Whitelabel setting page
  • Update onboard steps to remove video and documentation link (Version 13)
  • Manage Navbar Background color from Whitelabel setting
  • Manage Custom Navbar Title and CSS for title from Whitelabel setting
  • Change Login Page Title from Whitelabel Setting Page (#7)

Whitelabel Setting Page image

Custom Navbar Title image

Below are important settings in the Whitelabel setting page:

  1. Ignore Onboard Whitelabel:

    • If this setting value is true, then this app will not whitelabel onboarding steps and onboarding modules.
  2. Show help menu:

    • By default, this app hides the help menu. This setting shows the help menu if the value of this setting is true.
  3. Disable New Update Popup:

    • If this setting value is true, then it will disable the new updates popup.

Installation Steps:

  1. Clone the repository: bench get-app https://github.com/bhavesh95863/whitelabel

  2. Install the app for a specific site: bench --site sitename install-app whitelabel

  3. Migrate the database: bench --site site_name migrate

  4. Restart the bench: bench restart

  5. Clear the cache: bench clear-cache

Contributing

Contributions to the whitelable module are welcome! If you have ideas for improvements or new features, feel free to submit a pull request or open an issue on our GitHub repository.

License

This project is licensed under the MIT License.

whitelabel's People

Contributors

bhavesh95863 avatar bhaveshchouhan avatar bhavikpatel7023 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

whitelabel's Issues

repeated lines

in whitelable.js why do you have these lines twice?

        if (frappe.boot.app_logo_details.logo_width) {
            $('.app-logo').css('width',frappe.boot.app_logo_details.logo_width+'px');
        }
        if (frappe.boot.app_logo_details.logo_width) {
            $('.app-logo').css('width',frappe.boot.app_logo_details.logo_width+'px');
        }

NameError: name '_' is not defined after update

After the update, an error message coming as, "NameError: name '_' is not defined after update ". The message went if we uninstall the Whitelabel app. If it is related to defining name in Whitelabel Setting, we changed and it reflected on the login screen

image

Undo few changes done by app & upload logo

How do i not make below changes

  • Hide Help Menu
  • Update onboard steps for remove video and documentation link(Version13)

Also where do i upload the logo to replace the login page image & the brand icon on the desk Navbar

Problems with v 13.18

Much appreciated essential app, but it looks like the "whitelabling App Name" and "Navbar Title" are not functioning.
If you have time please consider revising the logos selection feature.

Thanx

Add an option to replace Login to ERPNext with custom string

Currently, login screen displays text Login to ERPNext. To change this text without keeping a fork is not not straightforward. Adding an option to change this string from this app will make it easy to obtain ERPNext updates while keeping custom string.

login

Migration failed on frappe v12

I had an error during bench migrate (frappe & erpnext v12.x)
File "/home/frappe/frappe-bench/apps/whitelabel/whitelabel/api.py", line 23, in get_frappe_version
return frappe.db.get_value("Installed Application",{"app_name":"frappe"},"app_version").split('.')[0]
AttributeError: 'NoneType' object has no attribute 'split'

Change logo image to .png

can you please change logo image to .png so that the logo background is transparent and not white.

I am getting this error

Hello, when i try to upload or edit anything in the whitelabel module i get this error

App Versions

{
"erpnext": "13.49.11",
"frappe": "13.52.0",
"whitelabel": "0.0.1"
}

Route

Form/Whitelabel Setting/Whitelabel Setting

Trackeback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 66, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 38, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1473, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/save.py", line 24, in savedocs
    doc.save()
  File "apps/frappe/frappe/model/document.py", line 312, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 349, in _save
    self.run_before_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1054, in run_before_save_methods
    self.run_method("validate")
  File "apps/frappe/frappe/model/document.py", line 943, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1264, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1246, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 940, in fn
    return method_object(*args, **kwargs)
  File "apps/whitelabel/whitelabel/whitelabel/doctype/whitelabel_setting/whitelabel_setting.py", line 14, in validate
    if cint(get_frappe_version()) >= 13:
  File "apps/whitelabel/whitelabel/api.py", line 23, in get_frappe_version
    return frappe.db.get_value("Installed Application",{"app_name":"frappe"},"app_version").split('.')[0]
AttributeError: 'NoneType' object has no attribute 'split'
 

Request Data

{
"type": "POST",
"args": {
"doc": "{\"name\":\"Whitelabel Setting\",\"owner\":\"Administrator\",\"creation\":\"2023-04-09 19:13:40.145281\",\"modified\":\"2023-04-09 19:13:40.145281\",\"modified_by\":\"Administrator\",\"idx\":\"0\",\"docstatus\":0,\"ignore_onboard_whitelabel\":0,\"show_help_menu\":0,\"disable_new_update_popup\":1,\"app_logo_set\":0,\"doctype\":\"Whitelabel Setting\",\"__last_sync_on\":\"2023-04-15T05:36:22.809Z\",\"__unsaved\":1,\"application_logo\":\"/private/files/IMG_1852.png\"}",
"action": "Save"
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.save.savedocs"
}

Response Data

{
"exception": "AttributeError: 'NoneType' object has no attribute 'split'"
}

Error

Hello,

When I press the save button then the error comes.

Screenshot 2021-05-21 at 10 08 40 AM

in master branch error

Getting whitelabel
$ git clone https://github.com/bhavesh95863/whitelabel --depth 1 --origin upstream
Cloning into 'whitelabel'...
remote: Enumerating objects: 35, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 35 (delta 0), reused 24 (delta 0), pack-reused 0
Unpacking objects: 100% (35/35), 12.13 KiB | 730.00 KiB/s, done.
Ignoring dependencies of https://github.com/bhavesh95863/whitelabel. To install dependencies use --resolve-deps
Installing whitelabel
$ /home/frappe/v13-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/v13-bench/apps/whitelabel
error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "/home/frappe/v13-bench/env/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/frappe/v13-bench/env/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/frappe/v13-bench/env/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 132, in get_requires_for_build_editable
return hook(config_settings)
File "/tmp/pip-build-env-_j495m5b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 450, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
File "/tmp/pip-build-env-_j495m5b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-_j495m5b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-_j495m5b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 487, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-_j495m5b/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 8, in
File "/home/frappe/v13-bench/apps/whitelabel/whitelabel/init.py", line 3, in
import frappe
File "/home/frappe/v13-bench/apps/frappe/frappe/init.py", line 21, in
import click
ModuleNotFoundError: No module named 'click'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR:
Traceback (most recent call last):
File "/usr/local/bin/bench", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.8/dist-packages/bench/cli.py", line 127, in cli
bench_command()
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/bench/commands/make.py", line 159, in get_app
get_app(
File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/usr/local/lib/python3.8/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 242, in install
install_app(
File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 573, in install_app
bench.run(
File "/usr/local/lib/python3.8/dist-packages/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File "/usr/local/lib/python3.8/dist-packages/bench/utils/init.py", line 155, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.