mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
fix(test): do not use is_group enabled customer group in test
(cherry picked from commit 75fa2b2277)
This commit is contained in:
@@ -398,7 +398,7 @@ def add_vouchers(gl_account="_Test Bank - _TC"):
|
|||||||
frappe.get_doc(
|
frappe.get_doc(
|
||||||
{
|
{
|
||||||
"doctype": "Customer",
|
"doctype": "Customer",
|
||||||
"customer_group": "All Customer Groups",
|
"customer_group": "Individual",
|
||||||
"customer_type": "Company",
|
"customer_type": "Company",
|
||||||
"customer_name": "Poore Simon's",
|
"customer_name": "Poore Simon's",
|
||||||
}
|
}
|
||||||
@@ -429,7 +429,7 @@ def add_vouchers(gl_account="_Test Bank - _TC"):
|
|||||||
frappe.get_doc(
|
frappe.get_doc(
|
||||||
{
|
{
|
||||||
"doctype": "Customer",
|
"doctype": "Customer",
|
||||||
"customer_group": "All Customer Groups",
|
"customer_group": "Individual",
|
||||||
"customer_type": "Company",
|
"customer_type": "Company",
|
||||||
"customer_name": "Fayva",
|
"customer_name": "Fayva",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ def make_customer(customer=None):
|
|||||||
{
|
{
|
||||||
"doctype": "Customer",
|
"doctype": "Customer",
|
||||||
"customer_name": customer_name,
|
"customer_name": customer_name,
|
||||||
"customer_group": "All Customer Groups",
|
"customer_group": "Individual",
|
||||||
"customer_type": "Company",
|
"customer_type": "Company",
|
||||||
"territory": "All Territories",
|
"territory": "All Territories",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class TestTaxes(unittest.TestCase):
|
|||||||
{
|
{
|
||||||
"doctype": "Customer",
|
"doctype": "Customer",
|
||||||
"customer_name": uuid4(),
|
"customer_name": uuid4(),
|
||||||
"customer_group": "All Customer Groups",
|
"customer_group": "Individual",
|
||||||
}
|
}
|
||||||
).insert()
|
).insert()
|
||||||
self.supplier = frappe.get_doc(
|
self.supplier = frappe.get_doc(
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ def create_shipment_customer(customer_name):
|
|||||||
customer = frappe.new_doc("Customer")
|
customer = frappe.new_doc("Customer")
|
||||||
customer.customer_name = customer_name
|
customer.customer_name = customer_name
|
||||||
customer.customer_type = "Company"
|
customer.customer_type = "Company"
|
||||||
customer.customer_group = "All Customer Groups"
|
customer.customer_group = "Individual"
|
||||||
customer.territory = "All Territories"
|
customer.territory = "All Territories"
|
||||||
customer.insert()
|
customer.insert()
|
||||||
return customer
|
return customer
|
||||||
|
|||||||
Reference in New Issue
Block a user