hello guys i wish you all have a good day i want to share with you some issues i faced on erpnext specially in docker version
1-removing :8000 from emails links
* sudo bench setup production frappe (in docker version only)
*“sudo nano sites/common_site_config.json” then remove webserver:8000
2-devlopper mode
*sudo nano sites/your_site_directory/site_config.json
*add “developer_mode”: 1
3-bad formed PDF(Print format+css+bootstrap)
*sudo nano sites/your_site_directory/site_config.json
*“host_name”:“http://your_local_ip_address:80”(in docker version add the docker ip for me is
http://172.18.0.1:80)
4- email permission(sometime ubuntu prevent from sending emails)
* sudo nano /etc/ssl/openssl.cnf
* CipherString = DEFAULT@SECLEVEL=1 (in the system it’s set to 2 change it to 1)
5-swap 2 field values
*sudo bench mariadb
*UPDATE tabCustomer SET customer_name_in_arabic=customer_name,
customer_name=@temp where (@temp:=customer_name_in_arabic) IS NOT NULL and
(@temp:=customer_name_in_arabic) != ‘’ and name = ‘this is by name’;
6-report query problem (bad formed report unloaded css) in docker version
*sudo nano apps/frappe/frappe/utils/print_format.py
*change to the following code:
@frappe.whitelist()
def report_to_pdf(html, orientation=“Landscape”):
html=html.replace('you_website_name(exemple:www.google.com",“docker_ip(172.18.0.1)”)
make_access_log(file_type=‘PDF’, method=‘PDF’, page=html)
frappe.local.response.filename = “report.pdf”
frappe.local.response.filecontent = get_pdf(html, {“orientation”: orientation})
frappe.local.response.type = “pdf”
hope this will help you all .thank you very much