From 7eb9dc01f8bf032dfdd3a56582fa3771c10ff295 Mon Sep 17 00:00:00 2001 From: gavin Date: Fri, 8 Oct 2021 15:10:03 +0530 Subject: [PATCH] fix: Ignore mandatory fields if exist (#27871) The goal of this fix is to not break the patch in case of customizations In this particular case, it's regarding a customized Note DocType with multiple custom mandatory fields --- erpnext/patches/v13_0/shopping_cart_to_ecommerce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v13_0/shopping_cart_to_ecommerce.py b/erpnext/patches/v13_0/shopping_cart_to_ecommerce.py index d336c92975..35710a9bb4 100644 --- a/erpnext/patches/v13_0/shopping_cart_to_ecommerce.py +++ b/erpnext/patches/v13_0/shopping_cart_to_ecommerce.py @@ -26,4 +26,4 @@ def notify_users(): note.public = 1 note.notify_on_login = 1 note.content = """

You are seeing this message because Shopping Cart is enabled on your site.


Shopping Cart Settings and Products settings are now merged into "E Commerce Settings".


You can learn about new and improved E-Commerce features in the official documentation.

  1. https://docs.erpnext.com/docs/v13/user/manual/en/e_commerce/set_up_e_commerce


""" - note.save() + note.insert(ignore_mandatory=True)