mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
fix: tests now create filters with checkbox enabled
This commit is contained in:
@@ -86,7 +86,7 @@
|
|||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "1",
|
||||||
"fieldname": "apply_restriction_on_values",
|
"fieldname": "apply_restriction_on_values",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Apply restriction on dimension values"
|
"label": "Apply restriction on dimension values"
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2023-06-07 13:41:36.736175",
|
"modified": "2023-06-07 14:59:41.869117",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Accounting Dimension Filter",
|
"name": "Accounting Dimension Filter",
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ def create_accounting_dimension_filter():
|
|||||||
"accounting_dimension": "Cost Center",
|
"accounting_dimension": "Cost Center",
|
||||||
"allow_or_restrict": "Allow",
|
"allow_or_restrict": "Allow",
|
||||||
"company": "_Test Company",
|
"company": "_Test Company",
|
||||||
|
"apply_restriction_on_values": 1,
|
||||||
"accounts": [
|
"accounts": [
|
||||||
{
|
{
|
||||||
"applicable_on_account": "Sales - _TC",
|
"applicable_on_account": "Sales - _TC",
|
||||||
@@ -85,6 +86,7 @@ def create_accounting_dimension_filter():
|
|||||||
"doctype": "Accounting Dimension Filter",
|
"doctype": "Accounting Dimension Filter",
|
||||||
"accounting_dimension": "Department",
|
"accounting_dimension": "Department",
|
||||||
"allow_or_restrict": "Allow",
|
"allow_or_restrict": "Allow",
|
||||||
|
"apply_restriction_on_values": 1,
|
||||||
"company": "_Test Company",
|
"company": "_Test Company",
|
||||||
"accounts": [{"applicable_on_account": "Sales - _TC", "is_mandatory": 1}],
|
"accounts": [{"applicable_on_account": "Sales - _TC", "is_mandatory": 1}],
|
||||||
"dimensions": [{"accounting_dimension": "Department", "dimension_value": "Accounts - _TC"}],
|
"dimensions": [{"accounting_dimension": "Department", "dimension_value": "Accounts - _TC"}],
|
||||||
|
|||||||
Reference in New Issue
Block a user