mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 16:28:20 +00:00
chore: warning for Amazon MWS integration deprecation (#29792)
* chore: warning for amazon mws integration deprecation * style: spaces to tabs [skip ci]
This commit is contained in:
@@ -1,2 +1,10 @@
|
||||
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
|
||||
frappe.ui.form.on('Amazon MWS Settings', {
|
||||
refresh: function (frm) {
|
||||
let app_link = "<a href='https://github.com/frappe/ecommerce_integrations' target='_blank'>Ecommerce Integrations</a>"
|
||||
frm.dashboard.add_comment(__("Amazon MWS Integration will be removed from ERPNext in Version 14. Please install {0} app to continue using it.", [app_link]), "yellow", true);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -348,4 +348,5 @@ erpnext.patches.v13_0.delete_bank_reconciliation_detail
|
||||
erpnext.patches.v13_0.update_sane_transfer_against
|
||||
erpnext.patches.v13_0.enable_provisional_accounting
|
||||
erpnext.patches.v13_0.update_disbursement_account
|
||||
erpnext.patches.v13_0.update_reserved_qty_closed_wo
|
||||
erpnext.patches.v13_0.update_reserved_qty_closed_wo
|
||||
erpnext.patches.v13_0.amazon_mws_deprecation_warning
|
||||
15
erpnext/patches/v13_0/amazon_mws_deprecation_warning.py
Normal file
15
erpnext/patches/v13_0/amazon_mws_deprecation_warning.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import click
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
|
||||
frappe.reload_doc("erpnext_integrations", "doctype", "amazon_mws_settings")
|
||||
if not frappe.db.get_single_value("Amazon MWS Settings", "enable_amazon"):
|
||||
return
|
||||
|
||||
click.secho(
|
||||
"Amazon MWS Integration is moved to a separate app and will be removed from ERPNext in version-14.\n"
|
||||
"Please install the app to continue using the integration: https://github.com/frappe/ecommerce_integrations",
|
||||
fg="yellow",
|
||||
)
|
||||
Reference in New Issue
Block a user