You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/community/contributing.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,6 @@ Python 3.10 should be used to build the documentation. You can install it using
160
160
following the instructions on the [pyenv GitHub page](https://github.com/pyenv/pyenv).
161
161
162
162
```bash
163
-
cd docs
164
163
pip install -r requirements.txt
165
164
make html
166
165
```
@@ -205,6 +204,7 @@ To make it easier for other contributors to work with your project, update the f
205
204
Commit and push your changes to a remote, and submit a pull request against [`openspp/documentation`](https://github.com/openspp/documentation/compare).
206
205
207
206
(authors-guide-label)=
207
+
-->
208
208
209
209
# Authors guide
210
210
@@ -221,9 +221,10 @@ Use `sphinx-autobuild` to view changes in the browser while you edit documentati
221
221
make livehtml
222
222
```
223
223
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.
225
225
226
226
227
+
<!-- Commented this section out, this whole commented section is all from the old documentation version. unless there are relevant information
Copy file name to clipboardExpand all lines: docs/developer_guide/developer_mode.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,6 @@ Additional modes are available for developers: `?debug=assets` enables the [asse
35
35
36
36
## Locate the developer mode tools
37
37
38
-
---
39
-
40
38
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.
41
39
42
40

Copy file name to clipboardExpand all lines: docs/developer_guide/module_development/audit.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,12 @@ In this example, we customize the audit rule to include an `active` flag, allowi
54
54
55
55
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).
56
56
57
-
### Step 1: Create the Module Scaffold
57
+
### Create the Module Scaffold
58
58
59
59
Start by creating a new directory for your module (e.g., `spp_audit_log_custom`) and populate it
60
60
with the basic Odoo module files (`__init__.py`, `__manifest__.py`) and the directory structure shown above.
61
61
62
-
### Step 2: Define Module Manifest
62
+
### Define Module Manifest
63
63
64
64
Create a manifest file with the correct dependencies and data files:
65
65
@@ -87,7 +87,7 @@ Create a manifest file with the correct dependencies and data files:
87
87
}
88
88
```
89
89
90
-
### Step 3: Extend the Audit Rule Model
90
+
### Extend the Audit Rule Model
91
91
92
92
Create `models/spp_audit_rule.py` and update `models/__init__.py`:
93
93
@@ -103,7 +103,7 @@ class CustomAuditRule(models.Model):
103
103
)
104
104
```
105
105
106
-
### Step 4: Create View Extensions
106
+
### Create View Extensions
107
107
108
108
Create `views/spp_audit_rule_views.xml` and add it to the manifest:
109
109
@@ -122,7 +122,7 @@ Create `views/spp_audit_rule_views.xml` and add it to the manifest:
122
122
</odoo>
123
123
```
124
124
125
-
### Step 5: Add Security Access (Optional)
125
+
### Add Security Access (Optional)
126
126
127
127
If you introduce new models, add access rights. For simple field additions, this is not required. Example:
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.
57
57
58
-
### Step 2: Define the Manifest (`__manifest__.py`)
58
+
### Define the Manifest (`__manifest__.py`)
59
59
60
60
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.
61
61
@@ -84,7 +84,7 @@ The manifest file declares your module's metadata and dependencies. Our cycle ma
84
84
}
85
85
```
86
86
87
-
### Step 3: Create the Cycle Manager Model
87
+
### Create the Cycle Manager Model
88
88
89
89
This is the core of your module. You will create a new model that inherits from the default cycle manager and overrides its behavior.
90
90
@@ -110,7 +110,7 @@ This is the core of your module. You will create a new model that inherits from
To make OpenSPP aware of your new manager, you must add it to the list of available cycle managers.
116
116
@@ -133,7 +133,7 @@ To make OpenSPP aware of your new manager, you must add it to the list of availa
133
133
return selection
134
134
```
135
135
136
-
### Step 5: Create the User Interface
136
+
### Create the User Interface
137
137
138
138
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).
139
139
@@ -159,7 +159,7 @@ Create a form view for your manager. Since we are inheriting from the default ma
159
159
</record>
160
160
```
161
161
162
-
### Step 6: Extend the Program Creation Wizard
162
+
### Extend the Program Creation Wizard
163
163
164
164
To improve user experience, add a selection to the "Create Program" wizard so users can choose your new manager from the start.
165
165
@@ -245,7 +245,7 @@ To improve user experience, add a selection to the "Create Program" wizard so us
245
245
</record>
246
246
```
247
247
248
-
### Step 7: Set Up Security
248
+
### Set Up Security
249
249
250
250
Grant users access to your new model in`security/ir.model.access.csv`.
0 commit comments