Skip to content

Commit f7e6722

Browse files
authored
Merge pull request #62 from OpenSPP/refactor-structure-modify
[FIX] fix indicators on module dev
2 parents 177057a + 0d61733 commit f7e6722

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

docs/developer_guide/module_development/indicators.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ class G2PRegistrant(models.Model):
101101
compute="_compute_ind_grp_num_children",
102102
help="Number of children in the group",
103103
store=True,
104-
allow_filter=True,
105104
)
106105

107106
# Boolean indicator example
@@ -110,7 +109,6 @@ class G2PRegistrant(models.Model):
110109
compute="_compute_ind_grp_is_single_head_hh",
111110
help="Single-headed HH - extracted from demographic data of HH adult members",
112111
store=True,
113-
allow_filter=True,
114112
)
115113

116114
# Individual indicator example
@@ -222,7 +220,6 @@ from odoo import api, ValidationError
222220
## Best Practices
223221

224222
- Use `store=True` for indicators that need to be queried.
225-
- Use `allow_filter=True` for indicators that should be filterable in views.
226223
- Provide clear help text explaining the indicator's purpose.
227224

228225
## References

0 commit comments

Comments
 (0)