瀏覽代碼

fix: format error message (#9500)

* chore: format error message

* chore: formatting

* fix: remove / from translated string

* fix: typo

Co-authored-by: sahil28297 <37302950+sahil28297@users.noreply.github.com>
version-14
Himanshu 5 年之前
committed by GitHub
父節點
當前提交
52068ec0ca
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      frappe/contacts/doctype/address/address.py

+ 2
- 2
frappe/contacts/doctype/address/address.py 查看文件

@@ -58,8 +58,8 @@ class Address(Document):
def validate_reference(self):
if self.is_your_company_address:
if not [row for row in self.links if row.link_doctype == "Company"]:
frappe.throw(_("Address needs to be linked to a Company.Please add a row for {0} in the Links table below.") \
.format(frappe.bold(_("Company"))), title =_("Address not Linked"))
frappe.throw(_("Address needs to be linked to a Company. Please add a row for Company in the Links table below."),
title =_("Company not Linked"))

def get_display(self):
return get_address_display(self.as_dict())


Loading…
取消
儲存