fix: pass ignore_mandatory flag when updating customer from patient

This commit is contained in:
Rucha Mahabal 2020-05-17 21:46:42 +05:30
parent e83d1d221d
commit 40d49306d3

View File

@ -44,6 +44,7 @@ class Patient(Document):
customer.default_price_list = self.default_price_list customer.default_price_list = self.default_price_list
customer.default_currency = self.default_currency customer.default_currency = self.default_currency
customer.language = self.language customer.language = self.language
customer.ignore_mandatory = True
customer.save(ignore_permissions=True) customer.save(ignore_permissions=True)
else: else:
if frappe.db.get_single_value('Healthcare Settings', 'link_customer_to_patient'): if frappe.db.get_single_value('Healthcare Settings', 'link_customer_to_patient'):