Odoo Integration¶
Please check here for a general introduction to the system configuration files. The relevant config entries are to be made in the ADEPT2.properties.
REST Service Configuraiton¶
Please enable the REST services using the directions provided in Enable REST Services.
Pre-Shared Key Authentication, Application ACL¶
The Odoo integration needs the pre-shared key authentication to be enabled on the server. Accessing the Odoo application is limited and a rule needs to be set to allow users.
-
Add an ACL to allow logon to AristaFlow from the Odoo application. Replace
Agent()
by an appropriate Staff Assignment Rule, the example allows all users.OrgModelManager.SecurityManager.ACL.Logon.Application.Odoo = Agent()
-
Add the following entry for the pre-shared key authentication:
OrgModelManager.SecurityManager.TrustedSharedUtf8Keys = Something very secret
-
Encrypt above using
.\encryptPassword.bat -f D:\AristaFlow-Chronos\Server\conf\ADEPT2.properties -n OrgModelManager.SecurityManager.TrustedSharedUtf8Keys
Odoo System User¶
The Odoo integration uses for system actions, which are not performed in the context of a specific user, a separate AristaFlow user with the username odoo
. Agent and OrgPosition need to be created manually. Note, that this user needs to be found by the ACL added above, ie. the odoo
Agent needs to be allowed to logon using the Odoo
application.
Odoo Add-On Installation¶
Add the directory containing the AristaFlow BPM Odoo Add-On to the add-on path of the Odoo configuration.
Odoo Add-On Configuration¶
- Go to the Odoo Configuration
- Open the AristaFlow BPM section
- Enter the URL of the REST services as shown. The URL is logged by the Server during startup.
- Enter the trusted shared UTF-8 key as specified in the previous step
- Enable the integration
- Save the configuration