[FIX] Allow to run jobs when Odoo is not listening on localhost#51
Conversation
c0cd77e to
41fd7f8
Compare
lmignon
left a comment
There was a problem hiding this comment.
@sylvain-garancher Thank you for the fix.
LGTM (Code review only)
|
@sylvain-garancher do you plan to update the documentation too? |
|
Yep I think the PR @sbidoul linked should be ported, a simple cherry-pick won't be enough though. |
|
Thanks, I didn't see the PR in 9.0 (because it was in another repo). |
c8f2f3a to
b462fbf
Compare
|
Git was smart enough to make most of the work with a cherry-pick, I mostly had to update the configuration part, but I didn't took time to test if everything works. I credited the original author of this work on v9 in the commit message ;) |
| def urlopen(): | ||
| url = ('http://localhost:%s/queue_job/runjob?db=%s&job_uuid=%s' % | ||
| (port, db_name, job_uuid)) | ||
| url = ('%s://%s:%s/connector/runjob?db=%s&job_uuid=%s' % |
Initial work by Nils Hamerlinck <nils@hamerlinck.fr> on the connector module for Odoo v9.0 (commit 383959afc6f1f71a45320d9cab45b84a05572ac7)
b462fbf to
0f9833d
Compare
|
@sbidoul I think this PR can be merged now. |
|
How we have to configure to use this feature? |
On our dev boxes, we have Odoo running on loopback addresses other than localhost (ie. 127.16.4.2 for example), and
queue_jobhadlocalhosthardcoded.