Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
erp5
Commits
a3c309ca
Commit
a3c309ca
authored
Sep 28, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form: fix disabled fields not present in ZMI's "Order" tab
parent
6f22877e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Form.py
...tTemplateItem/portal_components/test.erp5.testERP5Form.py
+5
-0
product/ERP5Form/dtml/formOrder.dtml
product/ERP5Form/dtml/formOrder.dtml
+1
-1
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Form.py
View file @
a3c309ca
...
@@ -74,6 +74,11 @@ class TestERP5Form(ERP5TypeTestCase):
...
@@ -74,6 +74,11 @@ class TestERP5Form(ERP5TypeTestCase):
self
.
assertTrue
(
self
.
form
.
formUnProxify
())
self
.
assertTrue
(
self
.
form
.
formUnProxify
())
self
.
assertTrue
(
self
.
form
.
formShowRelatedProxyFields
())
self
.
assertTrue
(
self
.
form
.
formShowRelatedProxyFields
())
def
test_zmi_form_order_disabled_fields
(
self
):
self
.
assertIn
(
'my_string_field'
,
self
.
form
.
formOrder
())
self
.
form
.
my_string_field
.
values
[
'enabled'
]
=
False
self
.
assertIn
(
'my_string_field'
,
self
.
form
.
formOrder
())
def
test_publish_set_content_type
(
self
):
def
test_publish_set_content_type
(
self
):
resp
=
self
.
publish
(
self
.
form
.
getPath
())
resp
=
self
.
publish
(
self
.
form
.
getPath
())
self
.
assertIn
(
b"test string field"
,
resp
.
getBody
())
self
.
assertIn
(
b"test string field"
,
resp
.
getBody
())
...
...
product/ERP5Form/dtml/formOrder.dtml
View file @
a3c309ca
...
@@ -26,7 +26,7 @@ Change the display order and grouping of the fields in this form.
...
@@ -26,7 +26,7 @@ Change the display order and grouping of the fields in this form.
</td></tr>
</td></tr>
<tr><td>
<tr><td>
<dtml-let fields="get_fields_in_group(group)" fields_amount="_.len(fields)">
<dtml-let fields="get_fields_in_group(group
, include_disabled=True
)" fields_amount="_.len(fields)">
<table class="table table-borderless table-sm">
<table class="table table-borderless table-sm">
<dtml-in fields>
<dtml-in fields>
<dtml-let field=sequence-item field_id="field.id">
<dtml-let field=sequence-item field_id="field.id">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment