[setup] remove translations from action name (#10911)

This commit is contained in:
Prateeksha Singh 2017-09-26 13:07:24 +05:30 committed by Nabin Hait
parent 773e686fb1
commit ada8ba96b3
4 changed files with 30 additions and 30 deletions

View File

@ -436,7 +436,7 @@ erpnext.patches.v8_7.add_more_gst_fields
erpnext.patches.v8_7.fix_purchase_receipt_status erpnext.patches.v8_7.fix_purchase_receipt_status
erpnext.patches.v8_6.rename_bom_update_tool erpnext.patches.v8_6.rename_bom_update_tool
erpnext.patches.v8_7.set_offline_in_pos_settings #11-09-17 erpnext.patches.v8_7.set_offline_in_pos_settings #11-09-17
erpnext.patches.v8_9.add_setup_progress_actions #08-09-2017 erpnext.patches.v8_9.add_setup_progress_actions #08-09-2017 #26-09-2017
erpnext.patches.v8_9.rename_company_sales_target_field erpnext.patches.v8_9.rename_company_sales_target_field
erpnext.patches.v8_8.set_bom_rate_as_per_uom erpnext.patches.v8_8.set_bom_rate_as_per_uom
erpnext.patches.v9_0.remove_subscription_module erpnext.patches.v9_0.remove_subscription_module

View File

@ -9,27 +9,27 @@ def execute():
frappe.reload_doc("setup", "doctype", "setup_progress_action") frappe.reload_doc("setup", "doctype", "setup_progress_action")
actions = [ actions = [
{"action_name": _("Add Company"), "action_doctype": "Company", "min_doc_count": 1, "is_completed": 1, {"action_name": "Add Company", "action_doctype": "Company", "min_doc_count": 1, "is_completed": 1,
"domains": '[]' }, "domains": '[]' },
{"action_name": _("Set Sales Target"), "action_doctype": "Company", "min_doc_count": 99, {"action_name": "Set Sales Target", "action_doctype": "Company", "min_doc_count": 99,
"action_document": frappe.defaults.get_defaults().get("company") or '', "action_document": frappe.defaults.get_defaults().get("company") or '',
"action_field": "monthly_sales_target", "is_completed": 0, "action_field": "monthly_sales_target", "is_completed": 0,
"domains": '["Manufacturing", "Services", "Retail", "Distribution"]' }, "domains": '["Manufacturing", "Services", "Retail", "Distribution"]' },
{"action_name": _("Add Customers"), "action_doctype": "Customer", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Customers", "action_doctype": "Customer", "min_doc_count": 1, "is_completed": 0,
"domains": '["Manufacturing", "Services", "Retail", "Distribution"]' }, "domains": '["Manufacturing", "Services", "Retail", "Distribution"]' },
{"action_name": _("Add Suppliers"), "action_doctype": "Supplier", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Suppliers", "action_doctype": "Supplier", "min_doc_count": 1, "is_completed": 0,
"domains": '["Manufacturing", "Services", "Retail", "Distribution"]' }, "domains": '["Manufacturing", "Services", "Retail", "Distribution"]' },
{"action_name": _("Add Products"), "action_doctype": "Item", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Products", "action_doctype": "Item", "min_doc_count": 1, "is_completed": 0,
"domains": '["Manufacturing", "Services", "Retail", "Distribution"]' }, "domains": '["Manufacturing", "Services", "Retail", "Distribution"]' },
{"action_name": _("Add Programs"), "action_doctype": "Program", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Programs", "action_doctype": "Program", "min_doc_count": 1, "is_completed": 0,
"domains": '["Education"]' }, "domains": '["Education"]' },
{"action_name": _("Add Instructors"), "action_doctype": "Instructor", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Instructors", "action_doctype": "Instructor", "min_doc_count": 1, "is_completed": 0,
"domains": '["Education"]' }, "domains": '["Education"]' },
{"action_name": _("Add Courses"), "action_doctype": "Course", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Courses", "action_doctype": "Course", "min_doc_count": 1, "is_completed": 0,
"domains": '["Education"]' }, "domains": '["Education"]' },
{"action_name": _("Add Rooms"), "action_doctype": "Room", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Rooms", "action_doctype": "Room", "min_doc_count": 1, "is_completed": 0,
"domains": '["Education"]' }, "domains": '["Education"]' },
{"action_name": _("Add Users"), "action_doctype": "User", "min_doc_count": 4, "is_completed": 0, {"action_name": "Add Users", "action_doctype": "User", "min_doc_count": 4, "is_completed": 0,
"domains": '[]' } "domains": '[]' }
] ]

View File

@ -23,27 +23,27 @@ def install(country=None):
# Setup Progress # Setup Progress
{'doctype': "Setup Progress", "actions": [ {'doctype': "Setup Progress", "actions": [
{"action_name": _("Add Company"), "action_doctype": "Company", "min_doc_count": 1, "is_completed": 1, {"action_name": "Add Company", "action_doctype": "Company", "min_doc_count": 1, "is_completed": 1,
"domains": '[]' }, "domains": '[]' },
{"action_name": _("Set Sales Target"), "action_doctype": "Company", "min_doc_count": 99, {"action_name": "Set Sales Target", "action_doctype": "Company", "min_doc_count": 99,
"action_document": frappe.defaults.get_defaults().get("company") or '', "action_document": frappe.defaults.get_defaults().get("company") or '',
"action_field": "monthly_sales_target", "is_completed": 0, "action_field": "monthly_sales_target", "is_completed": 0,
"domains": '["Manufacturing", "Services", "Retail", "Distribution"]' }, "domains": '["Manufacturing", "Services", "Retail", "Distribution"]' },
{"action_name": _("Add Customers"), "action_doctype": "Customer", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Customers", "action_doctype": "Customer", "min_doc_count": 1, "is_completed": 0,
"domains": '["Manufacturing", "Services", "Retail", "Distribution"]' }, "domains": '["Manufacturing", "Services", "Retail", "Distribution"]' },
{"action_name": _("Add Suppliers"), "action_doctype": "Supplier", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Suppliers", "action_doctype": "Supplier", "min_doc_count": 1, "is_completed": 0,
"domains": '["Manufacturing", "Services", "Retail", "Distribution"]' }, "domains": '["Manufacturing", "Services", "Retail", "Distribution"]' },
{"action_name": _("Add Products"), "action_doctype": "Item", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Products", "action_doctype": "Item", "min_doc_count": 1, "is_completed": 0,
"domains": '["Manufacturing", "Services", "Retail", "Distribution"]' }, "domains": '["Manufacturing", "Services", "Retail", "Distribution"]' },
{"action_name": _("Add Programs"), "action_doctype": "Program", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Programs", "action_doctype": "Program", "min_doc_count": 1, "is_completed": 0,
"domains": '["Education"]' }, "domains": '["Education"]' },
{"action_name": _("Add Instructors"), "action_doctype": "Instructor", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Instructors", "action_doctype": "Instructor", "min_doc_count": 1, "is_completed": 0,
"domains": '["Education"]' }, "domains": '["Education"]' },
{"action_name": _("Add Courses"), "action_doctype": "Course", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Courses", "action_doctype": "Course", "min_doc_count": 1, "is_completed": 0,
"domains": '["Education"]' }, "domains": '["Education"]' },
{"action_name": _("Add Rooms"), "action_doctype": "Room", "min_doc_count": 1, "is_completed": 0, {"action_name": "Add Rooms", "action_doctype": "Room", "min_doc_count": 1, "is_completed": 0,
"domains": '["Education"]' }, "domains": '["Education"]' },
{"action_name": _("Add Users"), "action_doctype": "User", "min_doc_count": 4, "is_completed": 0, {"action_name": "Add Users", "action_doctype": "User", "min_doc_count": 4, "is_completed": 0,
"domains": '[]' } "domains": '[]' }
]}, ]},

View File

@ -20,7 +20,7 @@ def get_slide_settings():
# Initial state of slides # Initial state of slides
return [ return [
frappe._dict( frappe._dict(
action_name=_('Add Company'), action_name='Add Company',
title=_("Setup Company") if domain != 'Education' else _("Setup Institution"), title=_("Setup Company") if domain != 'Education' else _("Setup Institution"),
help=_('Setup your ' + ('company' if domain != 'Education' else 'institution') + ' and brand.'), help=_('Setup your ' + ('company' if domain != 'Education' else 'institution') + ' and brand.'),
# image_src="/assets/erpnext/images/illustrations/shop.jpg", # image_src="/assets/erpnext/images/illustrations/shop.jpg",
@ -58,7 +58,7 @@ def get_slide_settings():
] ]
), ),
frappe._dict( frappe._dict(
action_name=_('Add Customers'), action_name='Add Customers',
domains=('Manufacturing', 'Services', 'Retail', 'Distribution'), domains=('Manufacturing', 'Services', 'Retail', 'Distribution'),
title=_("Add Customers"), title=_("Add Customers"),
help=_("List a few of your customers. They could be organizations or individuals."), help=_("List a few of your customers. They could be organizations or individuals."),
@ -82,7 +82,7 @@ def get_slide_settings():
] ]
), ),
frappe._dict( frappe._dict(
action_name=_('Add Suppliers'), action_name='Add Suppliers',
domains=('Manufacturing', 'Services', 'Retail', 'Distribution'), domains=('Manufacturing', 'Services', 'Retail', 'Distribution'),
icon="fa fa-group", icon="fa fa-group",
title=_("Your Suppliers"), title=_("Your Suppliers"),
@ -111,7 +111,7 @@ def get_slide_settings():
] ]
), ),
frappe._dict( frappe._dict(
action_name=_('Add Products'), action_name='Add Products',
domains=['Manufacturing', 'Services', 'Retail', 'Distribution'], domains=['Manufacturing', 'Services', 'Retail', 'Distribution'],
icon="fa fa-barcode", icon="fa fa-barcode",
title=_("Your Products or Services"), title=_("Your Products or Services"),
@ -142,7 +142,7 @@ def get_slide_settings():
# School slides begin # School slides begin
frappe._dict( frappe._dict(
action_name=_('Add Programs'), action_name='Add Programs',
domains=("Education"), domains=("Education"),
title=_("Program"), title=_("Program"),
help=_("Example: Masters in Computer Science"), help=_("Example: Masters in Computer Science"),
@ -163,7 +163,7 @@ def get_slide_settings():
), ),
frappe._dict( frappe._dict(
action_name=_('Add Courses'), action_name='Add Courses',
domains=["Education"], domains=["Education"],
title=_("Course"), title=_("Course"),
help=_("Example: Basic Mathematics"), help=_("Example: Basic Mathematics"),
@ -183,7 +183,7 @@ def get_slide_settings():
] ]
), ),
frappe._dict( frappe._dict(
action_name=_('Add Instructors'), action_name='Add Instructors',
domains=["Education"], domains=["Education"],
title=_("Instructor"), title=_("Instructor"),
help=_("People who teach at your organisation"), help=_("People who teach at your organisation"),
@ -203,7 +203,7 @@ def get_slide_settings():
] ]
), ),
frappe._dict( frappe._dict(
action_name=_('Add Rooms'), action_name='Add Rooms',
domains=["Education"], domains=["Education"],
title=_("Room"), title=_("Room"),
help=_("Classrooms/ Laboratories etc where lectures can be scheduled."), help=_("Classrooms/ Laboratories etc where lectures can be scheduled."),
@ -222,7 +222,7 @@ def get_slide_settings():
# School slides end # School slides end
frappe._dict( frappe._dict(
action_name=_('Add Users'), action_name='Add Users',
title=_("Add Users"), title=_("Add Users"),
help=_("Add users to your organization, other than yourself."), help=_("Add users to your organization, other than yourself."),
fields=[ fields=[