frappe/frappe#478 erpnext install works

This commit is contained in:
Rushabh Mehta
2014-04-02 18:09:34 +05:30
parent 943e614810
commit f191f854cd
55 changed files with 165 additions and 167 deletions

View File

@@ -26,7 +26,7 @@ class PurchaseOrder(BuyingController):
}]
def validate(self):
super(DocType, self).validate()
super(PurchaseOrder, self).validate()
if not self.status:
self.status = "Draft"
@@ -47,7 +47,7 @@ class PurchaseOrder(BuyingController):
self.update_raw_materials_supplied("po_raw_material_details")
def validate_with_previous_doc(self):
super(DocType, self).validate_with_previous_doc(self.tname, {
super(PurchaseOrder, self).validate_with_previous_doc(self.tname, {
"Supplier Quotation": {
"ref_dn_field": "supplier_quotation",
"compare_fields": [["supplier", "="], ["company", "="], ["currency", "="]],

View File

@@ -10,7 +10,7 @@ class SupplierQuotation(BuyingController):
fname = "quotation_items"
def validate(self):
super(DocType, self).validate()
super(SupplierQuotation, self).validate()
if not self.status:
self.status = "Draft"
@@ -33,7 +33,7 @@ class SupplierQuotation(BuyingController):
pass
def validate_with_previous_doc(self):
super(DocType, self).validate_with_previous_doc(self.tname, {
super(SupplierQuotation, self).validate_with_previous_doc(self.tname, {
"Material Request": {
"ref_dn_field": "prevdoc_docname",
"compare_fields": [["company", "="]],