mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 09:05:00 +00:00
exclude current doc while validating (#13450)
This commit is contained in:
@@ -17,6 +17,5 @@ class SalaryComponent(Document):
|
||||
self.salary_component.split()]).upper()
|
||||
|
||||
self.salary_component_abbr = self.salary_component_abbr.strip()
|
||||
|
||||
self.salary_component_abbr = append_number_if_name_exists('Salary Component',
|
||||
self.salary_component_abbr, 'salary_component_abbr', separator='_')
|
||||
self.salary_component_abbr = append_number_if_name_exists('Salary Component', self.salary_component_abbr,
|
||||
'salary_component_abbr', separator='_', filters={"name": ["!=", self.name]})
|
||||
Reference in New Issue
Block a user