[fix] [patch]

This commit is contained in:
Rushabh Mehta 2016-07-04 17:34:25 +05:30
parent 1d797f717b
commit e38872294a
2 changed files with 2 additions and 3 deletions

View File

@ -1,14 +1,14 @@
from frappe import _
links = {
'fieldname': 'supplier_quotation',
'fieldname': 'request_for_quotation',
# 'non_standard_fieldnames': {
# 'Purchase Order': 'prevdoc_detail_docname',
# },
'transactions': [
{
'label': _('Related Documents'),
'items': ['Supplier Quotation', 'Purchase Order']
'items': ['Supplier Quotation']
},
]
}

View File

@ -99,7 +99,6 @@ class Warehouse(NestedSet):
self.create_account_under = frappe.db.get_all('Account',
filters = {'company': self.company, 'is_group': 1,
'parent_account': '', 'root_type': 'Asset'}, limit=1)[0].name
frappe.throw(_("Please enter parent account group for warehouse {0}").format(self.name))
elif frappe.db.get_value("Account", self.create_account_under, "company") != self.company:
frappe.throw(_("Warehouse {0}: Parent account {1} does not bolong to the company {2}")
.format(self.name, self.create_account_under, self.company))