Add new line in py file erpnext

In ERPNext, you can add a new line to a Python file by following these steps:

  1. Open the Python file in the ERPNext code editor:
    • Go to the ERPNext dashboard and click on the "Developer" button in the top right corner.
    • Click on "Code" and select the Python file you want to edit.
  2. Add a new line:
    • Click inside the code editor where you want to add the new line.
    • Press the Enter key to create a new line.
    • Type the new code on the new line.
  3. Save the changes:
    • Click on the "File" menu and select "Save" or press Ctrl+S (or Cmd+S on a Mac).
  4. Reload the Python file:
    • Go back to the ERPNext dashboard and click on the "Developer" button again.
    • Click on "Reload" next to the Python file you edited.

Alternatively, you can also add a new line using the command line:

  1. Open a terminal or command prompt and navigate to the ERPNext code directory:
    • cd /path/to/erpnext
  2. Edit the Python file using a text editor:
    • sudo nano frappe/bench/apps/your_app/your_file.py (replace your_app and your_file.py with the actual file name and path)
  3. Add the new line and save the file.
  4. Reload the Python file:
    • bench build (this will rebuild the Python file and make the changes available in ERPNext)

Note: Make sure you have the necessary permissions to edit the Python file, and that you are editing the correct file. Also, be careful when making changes to the code, as it can affect the functionality of your ERPNext installation.