refactor(sales_invoice): Replace SQL with orm in get_company_abbr (#55384)

This commit is contained in:
Loic Oberle
2026-05-29 10:28:51 +02:00
committed by GitHub
parent 9b1229f4cd
commit eb638d8f3a

View File

@@ -994,7 +994,7 @@ class SalesInvoice(SellingController):
return pos
def get_company_abbr(self):
return frappe.db.sql("select abbr from tabCompany where name=%s", self.company)[0][0]
return frappe.db.get_value("Company", self.company, "abbr")
def validate_debit_to_acc(self):
if not self.debit_to: