This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved crvs_data_source.xml, removed create_data_source function, f…
…ix fetch button
- Loading branch information
1 parent
1350021
commit df6a6ff
Showing
3 changed files
with
22 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<function model="spp.data.source" name="create_data_source"> | ||
<value | ||
model="spp.data.source" | ||
eval="{ | ||
'name': 'CRVS', | ||
'url': 'https://dci.opencrvs.lab.cdpi.dev', | ||
'auth_type':'bearer_authentication', | ||
'paths': [ | ||
{ | ||
'name': 'Registry Sync Search', | ||
'path': '/registry/sync/search', | ||
}, | ||
{ | ||
'name': 'Authentication', | ||
'path': '/oauth2/client/token', | ||
}, | ||
{ | ||
'name': 'Location', | ||
'path': '/.well-known/locations.json', | ||
} | ||
] | ||
}" | ||
/> | ||
</function> | ||
<record id="spp_crvs_data_source" model="spp.data.source"> | ||
<field name="name">CRVS</field> | ||
<field name="url">https://dci.opencrvs.lab.cdpi.dev</field> | ||
<field name="auth_type">bearer_authentication</field> | ||
</record> | ||
<record id="spp_crvs_registry_path" model="spp.data.source.path"> | ||
<field name="data_source_id" eval="ref('spp_import_dci_api.spp_crvs_data_source')" /> | ||
<field name="key">Registry Sync Search</field> | ||
<field name="value">/registry/sync/search</field> | ||
</record> | ||
<record id="spp_crvs_oauth2_path" model="spp.data.source.path"> | ||
<field name="data_source_id" eval="ref('spp_import_dci_api.spp_crvs_data_source')" /> | ||
<field name="key">Authentication</field> | ||
<field name="value">/oauth2/client/token</field> | ||
</record> | ||
<record id="spp_crvs_location_path" model="spp.data.source.path"> | ||
<field name="data_source_id" eval="ref('spp_import_dci_api.spp_crvs_data_source')" /> | ||
<field name="key">Location</field> | ||
<field name="value">/.well-known/locations.json</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters