Fixes for updating item variant from template (#10975)

* Fixes for updating item variant from template

* More fixes for test cases
This commit is contained in:
Nabin Hait
2017-09-29 15:11:50 +05:30
committed by GitHub
parent 9c339145b2
commit 945f502748
8 changed files with 22 additions and 16 deletions

View File

@@ -61,7 +61,7 @@ class Project(Document):
self.send_welcome_email()
def validate_project_name(self):
if frappe.db.exists("Project", self.project_name):
if self.get("__islocal") and frappe.db.exists("Project", self.project_name):
frappe.throw(_("Project {0} already exists").format(self.project_name))
def validate_dates(self):