mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix: linter issues
This commit is contained in:
@@ -22,9 +22,12 @@ class Contract(Document):
|
|||||||
|
|
||||||
# If identical, append contract name with the next number in the iteration
|
# If identical, append contract name with the next number in the iteration
|
||||||
if frappe.db.exists("Contract", name):
|
if frappe.db.exists("Contract", name):
|
||||||
count = frappe.db.count('Contract', filters={
|
count = frappe.db.count(
|
||||||
'name': ('like', f"%{name}%"),
|
"Contract",
|
||||||
})
|
filters={
|
||||||
|
"name": ("like", f"%{name}%"),
|
||||||
|
},
|
||||||
|
)
|
||||||
name = f"{name} - {count}"
|
name = f"{name} - {count}"
|
||||||
|
|
||||||
self.name = _(name)
|
self.name = _(name)
|
||||||
|
|||||||
Reference in New Issue
Block a user