From 4865eabee5152d43f4b827d1ec03a2cf050b4705 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Wed, 24 Jul 2019 13:37:54 +0530 Subject: [PATCH 1/3] fix: add Company by default in session defaults (#18460) --- erpnext/setup/install.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/erpnext/setup/install.py b/erpnext/setup/install.py index 03da833dec..5e85f7d526 100644 --- a/erpnext/setup/install.py +++ b/erpnext/setup/install.py @@ -22,6 +22,7 @@ def after_install(): add_all_roles_to("Administrator") create_default_cash_flow_mapper_templates() create_default_success_action() + add_company_to_session_defaults() frappe.db.commit() @@ -84,3 +85,10 @@ def create_default_success_action(): if not frappe.db.exists('Success Action', success_action.get("ref_doctype")): doc = frappe.get_doc(success_action) doc.insert(ignore_permissions=True) + +def add_company_to_session_defaults(): + settings = frappe.get_single("Session Default Settings") + settings.append("session_defaults", { + "ref_doctype": "Company" + }) + settings.save() From cb19ee457c8a1644642ad81b34ef6e7390687115 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 24 Jul 2019 16:05:59 +0530 Subject: [PATCH 2/3] fix: urls for changelog --- erpnext/change_log/v12/v12_0_0.md | 50 +++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/erpnext/change_log/v12/v12_0_0.md b/erpnext/change_log/v12/v12_0_0.md index dcbc9a00dd..198e3d77d6 100644 --- a/erpnext/change_log/v12/v12_0_0.md +++ b/erpnext/change_log/v12/v12_0_0.md @@ -1,41 +1,41 @@ # Version 12 Release Notes ### Accounting -1. [Accounting Dimensions](/docs/user/manual/en/accounts/accounting-dimensions) -1. [Chart of Accounts Importer](/docs/user/manual/en/setting-up/chart-of-accounts-importer) -1. [Invoice Discounting](/docs/user/manual/en/accounts/invoice_discounting) +1. [Accounting Dimensions](https://erpnext.com/docs/user/manual/en/accounts/accounting-dimensions) +1. [Chart of Accounts Importer](https://erpnext.com/docs/user/manual/en/setting-up/chart-of-accounts-importer) +1. [Invoice Discounting](https://erpnext.com/docs/user/manual/en/accounts/invoice_discounting) 1. [Tally Migrator](https://github.com/frappe/erpnext/pull/17405) ### Stock -1. [Serialized & Batched Item Reconciliation](/docs/user/manual/en/setting-up/stock-reconciliation#12-for-serialized-items) +1. [Serialized & Batched Item Reconciliation](https://erpnext.com/docs/user/manual/en/setting-up/stock-reconciliation#12-for-serialized-items) 1. [Auto Fetch Serialized Items](/version-12/release-notes/features#new-upload-dialog) -1. [Item Tax Templates](/docs/user/manual/en/accounts/item-tax-template) +1. [Item Tax Templates](https://erpnext.com/docs/user/manual/en/accounts/item-tax-template) ### HR -1. [Auto Attendance](/docs/user/manual/en/human-resources/auto-attendance) -1. [Employee Skill Map](/docs/user/manual/en/human-resources/employee_skill_map) -1. [Encrypted Salary Slips](/docs/user/manual/en/human-resources/hr-settings#24-encrypt-salary-slips-in-emails) -1. [Leave Ledger](/docs/user/manual/en/human-resources/leave-ledger-entry) -1. [Staffing Plan](/docs/user/manual/en/human-resources/staffing-plan) +1. [Auto Attendance](https://erpnext.com/docs/user/manual/en/human-resources/auto-attendance) +1. [Employee Skill Map](https://erpnext.com/docs/user/manual/en/human-resources/employee_skill_map) +1. [Encrypted Salary Slips](https://erpnext.com/docs/user/manual/en/human-resources/hr-settings#24-encrypt-salary-slips-in-emails) +1. [Leave Ledger](https://erpnext.com/docs/user/manual/en/human-resources/leave-ledger-entry) +1. [Staffing Plan](https://erpnext.com/docs/user/manual/en/human-resources/staffing-plan) ### CRM -1. [Promotional Scheme](/docs/user/manual/en/accounts/promotional-schemes) -1. [SLA](/docs/user/manual/en/support/service-level-agreement) -1. [Exotel Call Integration](/docs/user/manual/en/erpnext_integration/exotel_integration) -1. [Email Campaign](/docs/user/manual/en/CRM/email-campaign) +1. [Promotional Scheme](https://erpnext.com/docs/user/manual/en/accounts/promotional-schemes) +1. [SLA](https://erpnext.com/docs/user/manual/en/support/service-level-agreement) +1. [Exotel Call Integration](https://erpnext.com/docs/user/manual/en/erpnext_integration/exotel_integration) +1. [Email Campaign](https://erpnext.com/docs/user/manual/en/CRM/email-campaign) ### Domain Specific Features -1. [Learning Management System](/docs/user/manual/en/education/setting-up-lms) -1. [Quality Management System](/docs/user/manual/en/quality-management) -1. [Production Planning Enhancements](/docs/user/manual/en/manufacturing/production-plan/planning-for-material-requests) -1. [Project Template](/docs/user/manual/en/projects/project-template) +1. [Learning Management System](https://erpnext.com/docs/user/manual/en/education/setting-up-lms) +1. [Quality Management System](https://erpnext.com/docs/user/manual/en/quality-management) +1. [Production Planning Enhancements](https://erpnext.com/docs/user/manual/en/manufacturing/production-plan/planning-for-material-requests) +1. [Project Template](https://erpnext.com/docs/user/manual/en/projects/project-template) ### New Reports -1. [Bank Remittance](/docs/user/manual/en/human-resources/human-resources-reports#bank-remittance-report) -1. [BOM Explorer](/docs/user/manual/en/stock/articles/bom_explorer) -1. [Billing Summary Report](/docs/user/manual/en/projects/reports/billing_summary_reports) +1. [Bank Remittance](https://erpnext.com/docs/user/manual/en/human-resources/human-resources-reports#bank-remittance-report) +1. [BOM Explorer](https://erpnext.com/docs/user/manual/en/stock/articles/bom_explorer) +1. [Billing Summary Report](https://erpnext.com/docs/user/manual/en/projects/reports/billing_summary_reports) 1. [Procurement Tracker Report](docs/user/manual/en/buying/articles/procurement-tracker-report) -1. [Loan Repayment](/docs/user/manual/en/human-resources/human-resources-reports#loan-repayment-report) -1. [GSTR-3B](/docs/user/manual/en/regional/india/gst-3b-report) -1. [Sales Partner](/docs/user/manual/en/selling/sales-partner#sales-partner-reports) -1. [Sales Partner Target Variance based on Item Group](sales-partner-target-variance-based-on-item-group) +1. [Loan Repayment](https://erpnext.com/docs/user/manual/en/human-resources/human-resources-reports#loan-repayment-report) +1. [GSTR-3B](https://erpnext.com/docs/user/manual/en/regional/india/gst-3b-report) +1. [Sales Partner](https://erpnext.com/docs/user/manual/en/selling/sales-partner#sales-partner-reports) +1. [Sales Partner Target Variance based on Item Group](https://erpnext.com/docs/user/manual/en/selling/sales-partner#sales-partner-target-variance-based-on-item-group) From 8b08684e07a571182108d7c332118a1bfc330bf4 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 24 Jul 2019 16:10:34 +0530 Subject: [PATCH 3/3] fix: more url fixes --- erpnext/change_log/v12/v12_0_0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/change_log/v12/v12_0_0.md b/erpnext/change_log/v12/v12_0_0.md index 198e3d77d6..c2f33a8b7a 100644 --- a/erpnext/change_log/v12/v12_0_0.md +++ b/erpnext/change_log/v12/v12_0_0.md @@ -8,7 +8,7 @@ ### Stock 1. [Serialized & Batched Item Reconciliation](https://erpnext.com/docs/user/manual/en/setting-up/stock-reconciliation#12-for-serialized-items) -1. [Auto Fetch Serialized Items](/version-12/release-notes/features#new-upload-dialog) +1. [Auto Fetch Serialized Items](https://erpnext.com/version-12/release-notes/features#new-upload-dialog) 1. [Item Tax Templates](https://erpnext.com/docs/user/manual/en/accounts/item-tax-template) ### HR