Improvements to Odoo service

Description

1. Upgrade of python version from 2.7 to 3*
2. Resolving python service script issues:

a. Error message even after successful start of odoo service with "systemctl start odoo" command
==============================

Jun 18 11:04:17 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:12 Failed to add dependency on <%=.service, ignoring: Invalid argument
Jun 18 11:04:17 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:13 Failed to add dependency on @postgresServiceName.service, ignoring: Invalid argument
Jun 18 11:04:17 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:14 Failed to add dependency on %>.service, ignoring: Invalid argument
Jun 18 11:04:18 localhost.localdomain odoo[2867]: Warn: Can't find .pfb for face 'Times-Roman'
Jun 18 11:04:20 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:12 Failed to add dependency on <%=.service, ignoring: Invalid argument
Jun 18 11:04:20 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:13 Failed to add dependency on @postgresServiceName.service, ignoring: Invalid argument
Jun 18 11:04:20 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:14 Failed to add dependency on %>.service, ignoring: Invalid argument
Jun 18 11:05:05 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:12 Failed to add dependency on <%=.service, ignoring: Invalid argument
Jun 18 11:05:05 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:13 Failed to add dependency on @postgresServiceName.service, ignoring: Invalid argument
Jun 18 11:05:05 localhost.localdomain systemd[1]: /run/systemd/generator.late/odoo.service:14 Failed to add dependency on %>.service, ignoring: Invalid argument

b. Error message:
=============
Can't open PID file /var/run/odoo/odoo-server.pid (yet?) after start: No such file or directory

3. RPM install proceeds even if there are errors in postinstall.sh/preinstall.sh scripts

4. bahmni-erp does not have a odoo.service file in bahmni-package module

Assignee

Unassigned

Reporter

Praveena Dayanand

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None

Fix versions

Configure