Add new line in py file erpnext
In ERPNext, you can add a new line to a Python file by following these steps:
- 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.
- 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.
- Save the changes:
- Click on the "File" menu and select "Save" or press Ctrl+S (or Cmd+S on a Mac).
- 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:
- Open a terminal or command prompt and navigate to the ERPNext code directory:
cd /path/to/erpnext
- Edit the Python file using a text editor:
sudo nano frappe/bench/apps/your_app/your_file.py
(replaceyour_app
andyour_file.py
with the actual file name and path)
- Add the new line and save the file.
- 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.