Skip to content

Commit

Permalink
Updated the link to Odoo 17
Browse files Browse the repository at this point in the history
  • Loading branch information
dasunhegoda committed Aug 13, 2024
1 parent 441d170 commit 073c85f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/explanation/Registering_individuals_and_groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ To learn more about export capabilities, read the Odoo documentation.

### Odoo API

Odoo is providing a [generic API](https://www.odoo.com/documentation/15.0/developer/api/external_api.html)
Odoo is providing a [generic API](https://www.odoo.com/documentation/17.0/developer/reference/external_api.html)
based on [XML-RPC](https://en.wikipedia.org/wiki/XML-RPC) for all the models in the systems. This API can be
used to import or export any data into the system.

Expand Down
2 changes: 1 addition & 1 deletion docs/technical_reference/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ data and just return the eligibility result to OpenSPP.

Furthermore, as OpenSPP is based on the ERP Odoo and use the standard models provided by Odoo, you have access
to the thousands of applications available in the [Odoo App Store](https://apps.odoo.com/apps) or build your
[own](https://www.odoo.com/documentation/15.0/developer.html).
[own](https://www.odoo.com/documentation/17.0/developer.html).

### Example components for a mid-size project

Expand Down
3 changes: 1 addition & 2 deletions docs/technical_reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ The Technical Reference is a detailed document outlining the system's architectu
**Security and Compliance**

- {doc}`security`
- {doc}`audit_logs`

**Code and Release Management**

Expand Down Expand Up @@ -53,7 +52,7 @@ extensibility
# Security and Compliance
security
oidc
audit_logs
#audit_logs
# Code and Release Management
code
Expand Down
7 changes: 3 additions & 4 deletions docs/tutorial/indicators.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Indicators are fields added to the group or individual table. In Odoo those are
The indicator fields are stored as fields in the database, but they're not editable. They're computed based on the data in the registry.

```{note}
Indicators computation, if not properly written can use a lot of resources.
Indicators computation, if not properly written can use a lot of resources.
While Odoo developers often write a for loop in the compute method to fetch some data, this is not a good practice.
It is recommended to fetch the data for all the records in one query and then set the value to each record.
Expand All @@ -37,7 +37,7 @@ TODO

Create a model that inherits from `res.partner`. In this example, we will count the number of children in a group.

To learn more about search domain, see the Odoo documentation on [search domains](https://www.odoo.com/documentation/15.0/developer/reference/backend/orm.html#search-domains).
To learn more about search domain, see the Odoo documentation on [search domains](https://www.odoo.com/documentation/17.0/developer/reference/backend/orm.html#search-domains).
Search domain are like a simplified SQL query. They're used to filter the data that is used to compute the indicator.

To simplify the count of members in a group, we created a helper method `compute_count_and_set_indicator` that takes the name of the indicator field, the domain to filter the members of the group, and the domain to filter the members of the group that are used to compute the indicator.
Expand All @@ -47,7 +47,6 @@ To simplify the count of members in a group, we created a helper method `compute
:noindex:
```


```python
import datetime
from odoo import fields, models
Expand All @@ -72,4 +71,4 @@ class G2PGroup(models.Model):
domain = [("birthdate", ">=", children)]
self.compute_count_and_set_indicator("z_ind_grp_num_children", None, domain)

```
```

0 comments on commit 073c85f

Please sign in to comment.