mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
[fix] [patch]
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
links = {
|
links = {
|
||||||
'fieldname': 'supplier_quotation',
|
'fieldname': 'request_for_quotation',
|
||||||
# 'non_standard_fieldnames': {
|
# 'non_standard_fieldnames': {
|
||||||
# 'Purchase Order': 'prevdoc_detail_docname',
|
# 'Purchase Order': 'prevdoc_detail_docname',
|
||||||
# },
|
# },
|
||||||
'transactions': [
|
'transactions': [
|
||||||
{
|
{
|
||||||
'label': _('Related Documents'),
|
'label': _('Related Documents'),
|
||||||
'items': ['Supplier Quotation', 'Purchase Order']
|
'items': ['Supplier Quotation']
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -99,7 +99,6 @@ class Warehouse(NestedSet):
|
|||||||
self.create_account_under = frappe.db.get_all('Account',
|
self.create_account_under = frappe.db.get_all('Account',
|
||||||
filters = {'company': self.company, 'is_group': 1,
|
filters = {'company': self.company, 'is_group': 1,
|
||||||
'parent_account': '', 'root_type': 'Asset'}, limit=1)[0].name
|
'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:
|
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}")
|
frappe.throw(_("Warehouse {0}: Parent account {1} does not bolong to the company {2}")
|
||||||
.format(self.name, self.create_account_under, self.company))
|
.format(self.name, self.create_account_under, self.company))
|
||||||
|
|||||||
Reference in New Issue
Block a user