sales order linked with project

This commit is contained in:
Nabin Hait 2012-12-18 10:33:04 +05:30
parent 49415d90fc
commit e93150bf26

View File

@ -59,7 +59,7 @@ class DocType(TransactionBase):
#-------------------------
def pull_project_customer(self):
res = sql("select customer from `tabProject` where name = '%s'"%self.doc.project_name)
if res:
if res and res[0][0]:
get_obj('DocType Mapper', 'Project-Sales Order').dt_map('Project', 'Sales Order', self.doc.project_name, self.doc, self.doclist, "[['Project', 'Sales Order']]")