diff --git a/docs/explanation/Registering_individuals_and_groups.md b/docs/explanation/Registering_individuals_and_groups.md index 8ea440f1..b6908506 100644 --- a/docs/explanation/Registering_individuals_and_groups.md +++ b/docs/explanation/Registering_individuals_and_groups.md @@ -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. diff --git a/docs/technical_reference/architecture.md b/docs/technical_reference/architecture.md index a925440f..74c78b1d 100644 --- a/docs/technical_reference/architecture.md +++ b/docs/technical_reference/architecture.md @@ -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 diff --git a/docs/technical_reference/index.md b/docs/technical_reference/index.md index 7f5713a9..b2555f95 100644 --- a/docs/technical_reference/index.md +++ b/docs/technical_reference/index.md @@ -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** @@ -53,7 +52,7 @@ extensibility # Security and Compliance security oidc -audit_logs +#audit_logs # Code and Release Management code diff --git a/docs/tutorial/indicators.md b/docs/tutorial/indicators.md index cf481026..83a1d94c 100644 --- a/docs/tutorial/indicators.md +++ b/docs/tutorial/indicators.md @@ -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. @@ -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. @@ -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 @@ -72,4 +71,4 @@ class G2PGroup(models.Model): domain = [("birthdate", ">=", children)] self.compute_count_and_set_indicator("z_ind_grp_num_children", None, domain) -``` \ No newline at end of file +```