mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 10:36:31 +00:00
frappe/frappe#478 erpnext install works
This commit is contained in:
@@ -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", "="]],
|
||||
|
||||
@@ -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", "="]],
|
||||
|
||||
Reference in New Issue
Block a user