Skip to content

Commit f1c795c

Browse files
Merge pull request #65 from OpenSPP/various-fixes-in-docs-edwin
Various fixes in docs edwin
2 parents 97590cf + f6a3802 commit f1c795c

19 files changed

+96
-130
lines changed

docs/community/contributing.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ Python 3.10 should be used to build the documentation. You can install it using
160160
following the instructions on the [pyenv GitHub page](https://github.com/pyenv/pyenv).
161161

162162
```bash
163-
cd docs
164163
pip install -r requirements.txt
165164
make html
166165
```
@@ -205,6 +204,7 @@ To make it easier for other contributors to work with your project, update the f
205204
Commit and push your changes to a remote, and submit a pull request against [`openspp/documentation`](https://github.com/openspp/documentation/compare).
206205
207206
(authors-guide-label)=
207+
-->
208208

209209
# Authors guide
210210

@@ -221,9 +221,10 @@ Use `sphinx-autobuild` to view changes in the browser while you edit documentati
221221
make livehtml
222222
```
223223

224-
You can open a browser at http://127.0.0.1:8000/ to preview the documentation.
224+
You can open a browser at http://127.0.0.1:8050/ to preview the documentation.
225225

226226

227+
<!-- Commented this section out, this whole commented section is all from the old documentation version. unless there are relevant information
227228
(authors-quality-checks-label)=
228229
229230
## Quality checks

docs/community/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ This section contains information about the OpenSPP project, community interacti
1313
- {doc}`code_of_conduct`
1414
- {doc}`license`
1515
- {doc}`security_reporting`
16-
- {doc}`support`
1716
- {doc}`release_management`
1817
- {doc}`module_lifecycle_development_status`
1918
- {doc}`module_lifecycle_maintainer_role`
@@ -27,7 +26,6 @@ contributing
2726
code_of_conduct
2827
license
2928
security_reporting
30-
support
3129
release_management
3230
module_lifecycle_development_status
3331
module_lifecycle_maintainer_role

docs/community/module_lifecycle_development_status.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
---
2-
review-status: needs-review
3-
review-date: 2025-06-04
4-
reviewer: migration-script
5-
migration-notes: "Added during 2025 documentation reorganization"
6-
---
7-
81
*****************************************************
92
Modules Maturity Levels and Development Status Policy
103
*****************************************************
114

12-
Introduction
13-
============
145
The requirements to merge code into OpenSPP projects depend on the module's
156
maturity level.
167

docs/community/module_lifecycle_maintainer_role.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
---
2-
review-status: needs-review
3-
review-date: 2025-06-04
4-
reviewer: migration-script
5-
migration-notes: "Added during 2025 documentation reorganization"
6-
---
7-
81
*****************************************
92
Module Lifecycle - Maintainer Role Policy
103
*****************************************
114

12-
13-
Introduction
14-
============
155
A Maintainer is responsible to ensure the coordination of specific addon
166
modules in order to ensure the quality and consistency of the
177
contributions. For a particular repository, this could be one, a few, or

docs/developer_guide/developer_mode.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ Additional modes are available for developers: `?debug=assets` enables the [asse
3535

3636
## Locate the developer mode tools
3737

38-
---
39-
4038
The user can access the developer mode tools by clicking on the _Open Developer Tools_ button or the bug icon located in the OpenSPP header, after activating developer mode.
4139

4240
![OpenSPP displays the console page and the debug icon.](developer_mode/3.png "Overview of a console page and the debug icon being shown in Odoo.")

docs/developer_guide/module_development/areas.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ A working sample module for the described scenario can be accessed at the provid
5757

5858
The key steps in module development are as follows:
5959

60-
### Step 1: Create the Module Scaffold
60+
### Create the Module Scaffold
6161

6262
Start by creating a new directory for your module (e.g., `spp_custom_area`) and populate it
6363
with the basic Odoo module files (`__init__.py`, `__manifest__.py`) and the directory structure shown above.
6464

65-
### Step 2: Define Module Manifest
65+
### Define Module Manifest
6666

6767
Create a manifest file that includes the proper dependencies and data files:
6868

@@ -89,7 +89,7 @@ Create a manifest file that includes the proper dependencies and data files:
8989
}
9090
```
9191

92-
### Step 3: Extend the Area Model
92+
### Extend the Area Model
9393

9494
Create a Python file named `area.py` that extends the `spp.area` model and add it to `models/__init__.py`:
9595

@@ -119,7 +119,7 @@ class SPPArea(models.Model):
119119
], string="Population Source", default="census")
120120
```
121121

122-
### Step 4: Create View Extensions
122+
### Create View Extensions
123123

124124
Create a new file called `views/area_views.xml` in the module and add it to the manifest file:
125125

@@ -179,7 +179,7 @@ Create a new file called `views/area_views.xml` in the module and add it to the
179179
</odoo>
180180
```
181181

182-
### Step 5: Add Security Access (Optional)
182+
### Add Security Access (Optional)
183183

184184
If you introduce new models, add access rights. For simple field additions, this is not required. Example:
185185

@@ -192,7 +192,7 @@ access_spp_your_custom_model_admin,spp.your.custom.model.admin,spp_area_custom.m
192192
- **`g2p_registry_base.group_g2p_registrar`** for Registrar Access
193193
- **`g2p_registry_base.group_g2p_admin`** for Admin Access.
194194

195-
### Step 6: Add Custom Area Types (Optional)
195+
### Add Custom Area Types (Optional)
196196

197197
Create `data/area_kind_data.xml` to add custom area types:
198198

@@ -206,7 +206,7 @@ Create `data/area_kind_data.xml` to add custom area types:
206206
</odoo>
207207
```
208208

209-
### Step 7: Adding Computed Fields, Constrains, and Validations (Optional)
209+
### Adding Computed Fields, Constrains, and Validations (Optional)
210210

211211
On your `models/area.py` you can add computed fields, constrains, and validations:
212212

@@ -249,7 +249,7 @@ from odoo.exceptions import ValidationError
249249
```
250250
Then add the custom computed field to the `area_views.xml` file
251251

252-
### Step 8: Install and Test
252+
### Install and Test
253253

254254
1. Install or upgrade the module through the Apps menu.
255255
2. Test the new fields in the area forms and lists
@@ -262,5 +262,4 @@ The following screenshot shows the added population fields in the newly develope
262262

263263
For more information on extending OpenSPP modules, refer to:
264264
- [Odoo 17 Developer Documentation](https://www.odoo.com/documentation/17.0/developer/)
265-
- [OpenSPP Documentation](https://docs.openspp.org/)
266265
- [Area Management Module Source](https://github.com/OpenSPP/openspp-modules/tree/17.0/spp_area_base)

docs/developer_guide/module_development/audit.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ In this example, we customize the audit rule to include an `active` flag, allowi
5454

5555
A working sample module is available at [this link](https://github.com/OpenSPP/documentation_code/tree/main/howto/developer_guides/customizations/spp_audit_log_custom).
5656

57-
### Step 1: Create the Module Scaffold
57+
### Create the Module Scaffold
5858

5959
Start by creating a new directory for your module (e.g., `spp_audit_log_custom`) and populate it
6060
with the basic Odoo module files (`__init__.py`, `__manifest__.py`) and the directory structure shown above.
6161

62-
### Step 2: Define Module Manifest
62+
### Define Module Manifest
6363

6464
Create a manifest file with the correct dependencies and data files:
6565

@@ -87,7 +87,7 @@ Create a manifest file with the correct dependencies and data files:
8787
}
8888
```
8989

90-
### Step 3: Extend the Audit Rule Model
90+
### Extend the Audit Rule Model
9191

9292
Create `models/spp_audit_rule.py` and update `models/__init__.py`:
9393

@@ -103,7 +103,7 @@ class CustomAuditRule(models.Model):
103103
)
104104
```
105105

106-
### Step 4: Create View Extensions
106+
### Create View Extensions
107107

108108
Create `views/spp_audit_rule_views.xml` and add it to the manifest:
109109

@@ -122,7 +122,7 @@ Create `views/spp_audit_rule_views.xml` and add it to the manifest:
122122
</odoo>
123123
```
124124

125-
### Step 5: Add Security Access (Optional)
125+
### Add Security Access (Optional)
126126

127127
If you introduce new models, add access rights. For simple field additions, this is not required. Example:
128128

@@ -134,7 +134,7 @@ access_custom_spp_audit_rule,custom.spp.audit.rule,spp_audit_log.model_spp_audit
134134
- Group ID: **`g2p_registry_base.group_g2p_registrar`** for Registrar Access
135135
- Group ID: **`g2p_registry_base.group_g2p_admin`** for Admin Access.
136136

137-
### Step 6: Add Preconfigured Rules (Optional)
137+
### Add Preconfigured Rules (Optional)
138138

139139
Seed rules using `data/audit_rule_data.xml` and the `spp.audit.rule.create_rules` helper:
140140

@@ -153,7 +153,7 @@ Seed rules using `data/audit_rule_data.xml` and the `spp.audit.rule.create_rules
153153

154154
For parent/child rules (requires `spp_audit_post`), also pass `parent_rule_name` and `connecting_field_name`.
155155

156-
### Step 7: Install and Test
156+
### Install and Test
157157

158158
1. Install or upgrade the module through the Apps menu.
159159
2. Create or update records in the configured models (e.g., Individual or Group Registry).
@@ -169,7 +169,6 @@ For parent/child rules (requires `spp_audit_post`), also pass `parent_rule_name`
169169

170170
For more information on extending OpenSPP modules, refer to:
171171
- [Odoo 17 Developer Documentation](https://www.odoo.com/documentation/17.0/developer/)
172-
- [OpenSPP Documentation](https://docs.openspp.org/)
173172
- Audit module sources:
174173
- [`spp_audit_log`](https://github.com/OpenSPP/openspp-modules/tree/17.0/spp_audit_log)
175174
- [`spp_audit_post`](https://github.com/OpenSPP/openspp-modules/tree/17.0/spp_audit_post)

docs/developer_guide/module_development/change_requests.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ spp_change_request_add_children_demo/
5555

5656
## Step-by-Step Guide
5757

58-
### Step 1: Create the Module Scaffold
58+
### Create the Module Scaffold
5959

6060
Start by creating a new directory for your module (e.g., `spp_change_request_custom_type`) and populate it
6161
with the basic Odoo module files (`__init__.py`, `__manifest__.py`) and the directory structure shown above.
6262

63-
### Step 2: Define the Manifest (`__manifest__.py`)
63+
### Define the Manifest (`__manifest__.py`)
6464

6565
The manifest file declares your module's metadata and dependencies. It's crucial to list all the modules your
6666
CR type will interact with. For our "Add Child/Member" example, the dependencies are:
@@ -97,7 +97,7 @@ CR type will interact with. For our "Add Child/Member" example, the dependencies
9797

9898
Your dependencies will vary based on the data you need to access and modify.
9999

100-
### Step 3: Create the Change Request Models
100+
### Create the Change Request Models
101101

102102
This is the heart of your module. You'll create a new model that holds the specific data for your change
103103
request type.
@@ -220,7 +220,7 @@ request type.
220220
return selection
221221
```
222222

223-
### Step 4: Create the User Interface (Views)
223+
### Create the User Interface (Views)
224224

225225
Define the form view for your custom CR type.
226226

@@ -310,7 +310,7 @@ Define the form view for your custom CR type.
310310
sequence="10"/>
311311
```
312312

313-
### Step 5: Define Data Files
313+
### Define Data Files
314314

315315
Use XML data files to configure aspects of your CR type.
316316

@@ -358,7 +358,7 @@ Use XML data files to configure aspects of your CR type.
358358
</odoo>
359359
```
360360

361-
### Step 6: Set Up Security
361+
### Set Up Security
362362

363363
Grant users access to your new model in security/ir.model.access.csv. At a minimum, you need to provide access
364364
to the base user group.
@@ -369,7 +369,7 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
369369
access_spp_change_request_add_children_user,spp.change.request.add.children.user,model_spp_change_request_add_children,base.group_user,1,1,1,1
370370
```
371371

372-
### Step 7: Install and Test
372+
### Install and Test
373373

374374
1. Install or upgrade the module through the Apps menu.
375375
2. Create a new change request.
@@ -383,6 +383,5 @@ Always start with a clear definition of the data you need to collect and the sys
383383

384384
For more information on extending OpenSPP modules, refer to:
385385
- [Odoo 17 Developer Documentation](https://www.odoo.com/documentation/17.0/developer/)
386-
- [OpenSPP Documentation](https://docs.openspp.org/)
387386
- [Change Request Module Source](https://github.com/OpenSPP/openspp-modules/tree/17.0/spp_change_request)
388387
- [OpenSPP Change Request Demo: Add Child/Member Module Source](https://github.com/OpenSPP/openspp-modules/tree/17.0/spp_change_request_add_children_demo)

docs/developer_guide/module_development/cycles.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ spp_cycle_manager_fixed_interval/
5151

5252
## Step-by-Step Guide
5353

54-
### Step 1: Create the Module Scaffold
54+
### Create the Module Scaffold
5555

5656
Start by creating a new directory for your module (e.g., `spp_cycle_manager_fixed_interval`) and populate it with the basic Odoo module files and the directory structure shown above.
5757

58-
### Step 2: Define the Manifest (`__manifest__.py`)
58+
### Define the Manifest (`__manifest__.py`)
5959

6060
The manifest file declares your module's metadata and dependencies. Our cycle manager depends on `g2p_programs` and `spp_programs` for the base manager framework.
6161

@@ -84,7 +84,7 @@ The manifest file declares your module's metadata and dependencies. Our cycle ma
8484
}
8585
```
8686

87-
### Step 3: Create the Cycle Manager Model
87+
### Create the Cycle Manager Model
8888

8989
This is the core of your module. You will create a new model that inherits from the default cycle manager and overrides its behavior.
9090

@@ -110,7 +110,7 @@ This is the core of your module. You will create a new model that inherits from
110110
return start_date + relativedelta(months=6, days=-1)
111111
```
112112

113-
### Step 4: Register the New Manager
113+
### Register the New Manager
114114

115115
To make OpenSPP aware of your new manager, you must add it to the list of available cycle managers.
116116

@@ -133,7 +133,7 @@ To make OpenSPP aware of your new manager, you must add it to the list of availa
133133
return selection
134134
```
135135

136-
### Step 5: Create the User Interface
136+
### Create the User Interface
137137

138138
Create a form view for your manager. Since we are inheriting from the default manager, we can also inherit its view and modify it to hide the fields that are no longer relevant (like the recurrence rules).
139139

@@ -159,7 +159,7 @@ Create a form view for your manager. Since we are inheriting from the default ma
159159
</record>
160160
```
161161

162-
### Step 6: Extend the Program Creation Wizard
162+
### Extend the Program Creation Wizard
163163

164164
To improve user experience, add a selection to the "Create Program" wizard so users can choose your new manager from the start.
165165

@@ -245,7 +245,7 @@ To improve user experience, add a selection to the "Create Program" wizard so us
245245
</record>
246246
```
247247

248-
### Step 7: Set Up Security
248+
### Set Up Security
249249

250250
Grant users access to your new model in `security/ir.model.access.csv`.
251251

@@ -256,7 +256,7 @@ g2p_cycle_manager_fixed_interval_admin,Cycle Manager Fixed Interval Admin Access
256256
g2p_cycle_manager_fixed_interval_program_manager,Cycle Manager Fixed Interval Program Manager Access,spp_cycle_manager_fixed_interval.model_g2p_cycle_manager_fixed_interval,g2p_programs.g2p_program_manager,1,1,1,0
257257
```
258258

259-
### Step 8: Install and Test
259+
### Install and Test
260260

261261
1. Install or upgrade the module through the Apps menu.
262262
2. Navigate to **Programs** and click **Create Program**.
@@ -268,5 +268,4 @@ g2p_cycle_manager_fixed_interval_program_manager,Cycle Manager Fixed Interval Pr
268268

269269
For more information on extending OpenSPP modules, refer to:
270270
- [Odoo 17 Developer Documentation](https://www.odoo.com/documentation/17.0/developer/)
271-
- [OpenSPP Documentation](https://docs.openspp.org/)
272271
- [OpenSPP Programs Module Source](https://github.com/OpenSPP/openspp-modules/tree/17.0/spp_programs)

0 commit comments

Comments
 (0)