Skip to content

Commit

Permalink
Updated to Odoo 17
Browse files Browse the repository at this point in the history
  • Loading branch information
dasunhegoda committed Aug 14, 2024
1 parent cfeb25a commit 50d1c1f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
26 changes: 15 additions & 11 deletions docs/howto/developer_mode.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,46 @@
(developer-mode)=
# Developer mode (debug mode)

# Developer mode (debug mode)

The developer mode (or debug mode) unlocks access to extra and advanced tools in OpenSPP. There are several ways to activate the developer mode: through the Settings or the URL.

## Activate through the settings

To activate the debug mode, open the OpenSPP database settings, go to **Settings → General Settings → Developer Tools** and click **Activate the developer mode**. Make sure that you have installed at least one app to see the **Developer Tools** section in the **Settings** module.

![Overview of the debug options under settings in Odoo.](developer_mode/settings.png "Overview of the debug options under settings in Odoo.")
![Overview of the debug options under settings in Odoo.](developer_mode/1.png "Overview of the debug options under settings in Odoo.")

```{note}
*Activate the developer mode (with assets)* is used by developers; *Activate the developer mode (with tests assets)* is used by developers and testers.
```
Once activated, the *Deactivate the developer mode* option becomes available.

Once activated, the _Deactivate the developer mode_ option becomes available.

## Activate through the URL

You can activate the debug mode by adding an extra query string to the database's URL. To activate, add `?debug=1` or `?debug=true` after `/web` in the URL. To deactivate, change the value to `?debug=0` instead.

![Overview of a URL with the debug mode command added.](developer_mode/url.png "Overview of a URL with the debug mode command added.")
![Overview of a URL with the debug mode command added.](developer_mode/2.png "Overview of a URL with the debug mode command added.")

```{tip}
Additional modes are available for developers: `?debug=assets` enables the [assets mode](#frontendframeworkassets_debug_mode), and `?debug=tests` enables the [tests mode](#frontendframeworktests_debug_mode).
```

## Locate the developer mode tools
-------------------------------

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.
---

![OpenSPP displays the console page and the debug icon.](developer_mode/button-location.png "Overview of a console page and the debug icon being shown in Odoo.")
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.

![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.")

This menu has extra tools that are useful to understand or edit technical data, such as the views or actions of a page. On a page that has filters, actions, and view options, the developer mode tools contain some useful menu items such as:

- *Edit Action*
- *Manage Filters*
- _Edit Action_
- _Manage Filters_
- Edit the current view (for example, Kanban, List, Graph, etc.)
- See the *Fields View Get*
- See the _Fields View Get_

```{note}
This page is adapted from the Odoo documentation on {ref}`odoo:developer-mode`.
```
```
Binary file added docs/howto/developer_mode/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/howto/developer_mode/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/howto/developer_mode/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ myst:

This Tutorials serve as a detailed manual for the utilization and navigation of OpenSPP. It is designed to offer clear, step-by-step instructions and essential tips for users of varying expertise levels. The guide aims to facilitate a thorough understanding and proficient use of the OpenSPP's features.

- [Access Management](access_management)
- [Audit Log](audit_log)
- [Change Requests](change_requests)
- [Consent Management](consent_management)
Expand All @@ -20,7 +19,6 @@ This Tutorials serve as a detailed manual for the utilization and navigation of
- [Grievance Redressal Management](grievance_redressal_management)
- [Indicators](indicators)
- [Social protection programs and cycles](programs_and_cycles)
- [Proxy Means Test](proxy_means_test)
- [Programs and Cycles](programs_and_cycles)
- [Vouchers](vouchers)
- [Hardware Integration](hardware_integration)
Expand Down Expand Up @@ -51,7 +49,7 @@ This Tutorials serve as a detailed manual for the utilization and navigation of
:maxdepth: 2
:hidden: true
access_management
audit_log
change_requests
consent_management
Expand All @@ -63,7 +61,6 @@ grievance_redressal_management
indicators
hardware_integration
programs_and_cycles
proxy_means_test
vouchers
user_guides/register_new_individual
user_guides/enroll_beneficiaries
Expand Down

0 comments on commit 50d1c1f

Please sign in to comment.