feat: slides for onboarding wizard in ERPNext
This commit is contained in:
parent
29a2e16f62
commit
3cf2c2b3d5
@ -426,7 +426,7 @@ body[data-route="pos"] {
|
|||||||
.collapse-btn {
|
.collapse-btn {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: @screen-xs) {
|
@media (max-width: @screen-xs) {
|
||||||
.page-actions {
|
.page-actions {
|
||||||
max-width: 110px;
|
max-width: 110px;
|
||||||
|
@ -20,7 +20,7 @@ def create_customers(args_data):
|
|||||||
args = json.loads(args_data)
|
args = json.loads(args_data)
|
||||||
defaults = frappe.defaults.get_defaults()
|
defaults = frappe.defaults.get_defaults()
|
||||||
for i in range(1,4):
|
for i in range(1,4):
|
||||||
customer = args.get("customer_" + str(i))
|
customer = args.get("customer_name_" + str(i))
|
||||||
if customer:
|
if customer:
|
||||||
try:
|
try:
|
||||||
doc = frappe.get_doc({
|
doc = frappe.get_doc({
|
||||||
@ -58,7 +58,7 @@ def create_suppliers(args_data):
|
|||||||
args = json.loads(args_data)
|
args = json.loads(args_data)
|
||||||
defaults = frappe.defaults.get_defaults()
|
defaults = frappe.defaults.get_defaults()
|
||||||
for i in range(1,4):
|
for i in range(1,4):
|
||||||
supplier = args.get("supplier_" + str(i))
|
supplier = args.get("supplier_name_" + str(i))
|
||||||
if supplier:
|
if supplier:
|
||||||
try:
|
try:
|
||||||
doc = frappe.get_doc({
|
doc = frappe.get_doc({
|
||||||
@ -76,7 +76,7 @@ def create_suppliers(args_data):
|
|||||||
|
|
||||||
def create_contact(contact, party_type, party):
|
def create_contact(contact, party_type, party):
|
||||||
"""Create contact based on given contact name"""
|
"""Create contact based on given contact name"""
|
||||||
contact = contact .split(" ")
|
contact = contact.split(" ")
|
||||||
|
|
||||||
contact = frappe.get_doc({
|
contact = frappe.get_doc({
|
||||||
"doctype":"Contact",
|
"doctype":"Contact",
|
||||||
@ -232,9 +232,3 @@ def create_users(args_data):
|
|||||||
emp.insert(ignore_permissions = True)
|
emp.insert(ignore_permissions = True)
|
||||||
|
|
||||||
# Ennumerate the setup hooks you're going to need, apart from the slides
|
# Ennumerate the setup hooks you're going to need, apart from the slides
|
||||||
|
|
||||||
@frappe.whitelist()
|
|
||||||
def update_default_domain_actions_and_get_state():
|
|
||||||
domain = frappe.get_cached_value('Company', erpnext.get_default_company(), 'domain')
|
|
||||||
update_domain_actions(domain)
|
|
||||||
return get_domain_actions_state(domain)
|
|
Loading…
x
Reference in New Issue
Block a user