Add File Content In The Email

This script is used for creating an email that has file cabinet file content in the email body. when the user clicks a button in the sales order the mail should send to the particular user.

DJANGO FRAMEWORK BASICS

CREATING PROJECT django-admin startproject projectname eg:django-admin startproject myproject cd myproject myproject/ manage.py myproject/ init.py settings.py urls.py wsgi.py settings.py DEBUG = True for sqlite3 DATABASES = { ‘default’: { ‘ENGINE’: ‘django.db.backends.sqlite3’, ‘NAME’: os.path.join(BASE_DIR, ‘db.sqlite3’), } } for mysql DATABASES = { ‘default’: { ‘ENGINE’: ‘django.db.backends.mysql’, ‘NAME’: ‘databasename’, ‘USER’: ‘root’, ‘PASSWORD’: ”, ‘HOST’: ‘localhost’, ‘PORT’: ”, }… Continue reading DJANGO FRAMEWORK BASICS

Loading icon to notify the user creation work Order transaction page

Client Event Script: var promise = new Promise(function(resolve, reject) { jQuery(“#custpage_load_img”).css(“display”, “block”); setTimeout(function() { resolve(); }, 500) }); promise.then(function() { var objRec = currentRecord.get(); window.location.reload() jQuery(“#custpage_load_img”).css(“display”, “none”); }).catch(function(errr) { console.log(‘errr’, errr); jQuery(“#custpage_load_img”).css(“display”, “none”); });