step 0: install
This commit is contained in:
parent
e460aa277b
commit
39bb8e2ed4
@ -5,7 +5,7 @@ from __future__ import unicode_literals
|
||||
import webnotes
|
||||
from webnotes.utils import cstr, cint
|
||||
from webnotes.utils.email_lib.receive import POP3Mailbox
|
||||
from core.doctype.communication.communication import make
|
||||
from webnotes.core.doctype.communication.communication import make
|
||||
|
||||
class JobsMailbox(POP3Mailbox):
|
||||
def setup(self, args=None):
|
||||
|
@ -205,7 +205,7 @@ class DocType(DocListController):
|
||||
|
||||
def notify(self, args):
|
||||
args = webnotes._dict(args)
|
||||
from core.page.messages.messages import post
|
||||
from webnotes.core.page.messages.messages import post
|
||||
post({"txt": args.message, "contact": args.message_to, "subject": args.subject,
|
||||
"notify": cint(self.doc.follow_via_email)})
|
||||
|
||||
|
11
erpnext/modules.txt
Normal file
11
erpnext/modules.txt
Normal file
@ -0,0 +1,11 @@
|
||||
accounts
|
||||
buying
|
||||
home
|
||||
hr
|
||||
manufacturing
|
||||
projects
|
||||
selling
|
||||
setup
|
||||
stock
|
||||
support
|
||||
utilities
|
@ -9,7 +9,7 @@ def execute():
|
||||
webnotes.reload_doc("buying", "doctype", "purchase_order")
|
||||
webnotes.reload_doc("selling", "doctype", "lead")
|
||||
|
||||
from core.doctype.custom_field.custom_field import create_custom_field_if_values_exist
|
||||
from webnotes.core.doctype.custom_field.custom_field import create_custom_field_if_values_exist
|
||||
|
||||
create_custom_field_if_values_exist("Material Request",
|
||||
{"fieldtype":"Text", "fieldname":"remark", "label":"Remarks","insert_after":"Fiscal Year"})
|
||||
|
@ -17,7 +17,7 @@ def execute():
|
||||
"""
|
||||
import os
|
||||
from webnotes.utils import get_site_base_path
|
||||
from core.doctype.custom_script.custom_script import make_custom_server_script_file
|
||||
from webnotes.core.doctype.custom_script.custom_script import make_custom_server_script_file
|
||||
for name, dt, script in webnotes.conn.sql("""select name, dt, script from `tabCustom Script`
|
||||
where script_type='Server'"""):
|
||||
if script and script.strip():
|
||||
|
@ -6,6 +6,8 @@ import webnotes, os, shutil
|
||||
|
||||
def execute():
|
||||
# changed cache key for plugin code files
|
||||
return
|
||||
|
||||
for doctype in webnotes.conn.sql_list("""select name from `tabDocType`"""):
|
||||
webnotes.cache().delete_value("_server_script:"+doctype)
|
||||
|
||||
|
@ -59,7 +59,7 @@ def get_transaction_context(doctype, name):
|
||||
|
||||
@webnotes.whitelist(allow_guest=True)
|
||||
def send_message(subject="Website Query", message="", sender="", status="Open"):
|
||||
from website.doctype.contact_us_settings.templates.pages.contact \
|
||||
from webnotes.website.doctype.contact_us_settings.templates.pages.contact \
|
||||
import send_message as website_send_message
|
||||
|
||||
if not website_send_message(subject, message, sender):
|
||||
|
@ -5,7 +5,7 @@ from __future__ import unicode_literals
|
||||
import webnotes
|
||||
from webnotes.utils import cstr, cint
|
||||
from webnotes.utils.email_lib.receive import POP3Mailbox
|
||||
from core.doctype.communication.communication import make
|
||||
from webnotes.core.doctype.communication.communication import make
|
||||
|
||||
def add_sales_communication(subject, content, sender, real_name, mail=None,
|
||||
status="Open", date=None):
|
||||
|
@ -280,7 +280,7 @@ class DocType(DocListController):
|
||||
return self.get_new_count("Project", self.meta.get_label("new_projects"), False)
|
||||
|
||||
def get_calendar_events(self, user_id):
|
||||
from core.doctype.event.event import get_events
|
||||
from webnotes.core.doctype.event.event import get_events
|
||||
events = get_events(self.future_from_date.strftime("%Y-%m-%d"), self.future_to_date.strftime("%Y-%m-%d"))
|
||||
|
||||
html = ""
|
||||
@ -301,7 +301,7 @@ class DocType(DocListController):
|
||||
return 0, "<p>Calendar Events</p>"
|
||||
|
||||
def get_todo_list(self, user_id):
|
||||
from core.page.todo.todo import get
|
||||
from webnotes.core.page.todo.todo import get
|
||||
todo_list = get()
|
||||
|
||||
html = ""
|
||||
|
@ -45,6 +45,6 @@ class DocType(DocTypeNestedSet, WebsiteGenerator):
|
||||
self.doc.title = self.doc.name
|
||||
|
||||
if self.doc.slideshow:
|
||||
from website.doctype.website_slideshow.website_slideshow import get_slideshow
|
||||
from webnotes.website.doctype.website_slideshow.website_slideshow import get_slideshow
|
||||
get_slideshow(self)
|
||||
|
@ -83,7 +83,7 @@ class DocType:
|
||||
webnotes.clear_cache(doctype=doctype)
|
||||
|
||||
def check_duplicate(self):
|
||||
from core.doctype.doctype.doctype import DocType
|
||||
from webnotes.core.doctype.doctype.doctype import DocType
|
||||
dt = DocType()
|
||||
|
||||
parent = list(set(
|
||||
@ -136,7 +136,7 @@ class DocType:
|
||||
msgprint("Please select prefix first")
|
||||
|
||||
def set_by_naming_series(doctype, fieldname, naming_series, hide_name_field=True):
|
||||
from core.doctype.property_setter.property_setter import make_property_setter
|
||||
from webnotes.core.doctype.property_setter.property_setter import make_property_setter
|
||||
if naming_series:
|
||||
make_property_setter(doctype, "naming_series", "hidden", 0, "Check")
|
||||
make_property_setter(doctype, "naming_series", "reqd", 1, "Check")
|
||||
|
@ -2,7 +2,7 @@
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
from home import update_feed
|
||||
from core.doctype.notification_count.notification_count import clear_doctype_notifications
|
||||
from webnotes.core.doctype.notification_count.notification_count import clear_doctype_notifications
|
||||
from stock.doctype.material_request.material_request import update_completed_qty
|
||||
|
||||
def on_method(bean, method):
|
||||
|
@ -41,7 +41,7 @@ def get_things_todo():
|
||||
|
||||
def get_todays_events():
|
||||
"""Returns a count of todays events in calendar"""
|
||||
from core.doctype.event.event import get_events
|
||||
from webnotes.core.doctype.event.event import get_events
|
||||
from webnotes.utils import nowdate
|
||||
today = nowdate()
|
||||
return len(get_events(today, today))
|
||||
|
@ -27,11 +27,11 @@ def execute_all():
|
||||
|
||||
def execute_daily():
|
||||
# event reminders
|
||||
from core.doctype.event.event import send_event_digest
|
||||
from webnotes.core.doctype.event.event import send_event_digest
|
||||
run_fn(send_event_digest)
|
||||
|
||||
# clear daily event notifications
|
||||
from core.doctype.notification_count.notification_count import delete_notification_count_for
|
||||
from webnotes.core.doctype.notification_count.notification_count import delete_notification_count_for
|
||||
delete_notification_count_for("Event")
|
||||
|
||||
# email digest
|
||||
|
@ -238,7 +238,7 @@ class DocType(DocListController, WebsiteGenerator):
|
||||
self.doc.title = self.doc.item_name
|
||||
|
||||
if self.doc.slideshow:
|
||||
from website.doctype.website_slideshow.website_slideshow import get_slideshow
|
||||
from webnotes.website.doctype.website_slideshow.website_slideshow import get_slideshow
|
||||
get_slideshow(self)
|
||||
|
||||
def get_file_details(self, arg = ''):
|
||||
|
@ -6,7 +6,7 @@ import webnotes
|
||||
from webnotes.utils import cstr, cint, decode_dict, today
|
||||
from webnotes.utils.email_lib import sendmail
|
||||
from webnotes.utils.email_lib.receive import POP3Mailbox
|
||||
from core.doctype.communication.communication import make
|
||||
from webnotes.core.doctype.communication.communication import make
|
||||
|
||||
class SupportMailbox(POP3Mailbox):
|
||||
def setup(self, args=None):
|
||||
|
@ -31,7 +31,7 @@ def add_reply(ticket, message):
|
||||
if bean.doc.raised_by != webnotes.session.user:
|
||||
raise webnotes.throw(_("You are not allowed to reply to this ticket."), webnotes.PermissionError)
|
||||
|
||||
from core.doctype.communication.communication import make
|
||||
from webnotes.core.doctype.communication.communication import make
|
||||
make(content=message, sender=bean.doc.raised_by, subject = bean.doc.subject,
|
||||
doctype="Support Ticket", name=bean.doc.name,
|
||||
date=today())
|
@ -9,7 +9,7 @@ import random
|
||||
import json
|
||||
|
||||
webnotes.session = webnotes._dict({"user":"Administrator"})
|
||||
from core.page.data_import_tool.data_import_tool import upload
|
||||
from webnotes.core.page.data_import_tool.data_import_tool import upload
|
||||
|
||||
# fix price list
|
||||
# fix fiscal year
|
||||
|
Loading…
x
Reference in New Issue
Block a user