fix(crm): keep opportunity type default untranslated (#59277)

(cherry picked from commit 79fd06a1ba)
This commit is contained in:
Pandiyan P
2026-09-22 16:36:45 +05:30
committed by Mergify
parent 06a8faa4ed
commit 8eb906366d
2 changed files with 2 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ erpnext.crm.Opportunity = class Opportunity extends frappe.ui.form.Controller {
}
if (this.frm.is_new() && this.frm.doc.opportunity_type === undefined) {
this.frm.doc.opportunity_type = __("Sales");
this.frm.doc.opportunity_type = "Sales";
}
this.setup_queries();
}

View File

@@ -167,7 +167,7 @@ class Opportunity(TransactionBase, CRMNote):
def set_opportunity_type(self):
if self.is_new() and not self.opportunity_type:
self.opportunity_type = _("Sales")
self.opportunity_type = "Sales"
def set_exchange_rate(self):
company_currency = frappe.get_cached_value("Company", self.company, "default_currency")