Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

differences between dev and production server in generating sales.order emails

By
Ale
on 3/9/16, 2:53 PM 322 views

When I generate a sales order(sale.order) on my dev server, I get the following log lines, and the form to write the email is correctly generated. But on the production site, for some reason, this form doesn't even appear, even if you generate it from a module, and it ends with a 504 timeout error. Here are some logs:

Dev server:

2016-03-09 19:20:03,652 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:03] "POST /web/dataset/call_button HTTP/1.0" 200 -

2016-03-09 19:20:03,932 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:03] "POST /web/dataset/call_kw/mail.compose.message/fields_view_get HTTP/1.0" 200 -

2016-03-09 19:20:04,339 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "POST /web/menu/load_needaction HTTP/1.0" 200 -

2016-03-09 19:20:04,867 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "GET /report/static/src/css/reset.min.css HTTP/1.1" 200 -

2016-03-09 19:20:04,871 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 200 -

2016-03-09 19:20:04,878 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "GET /website/static/src/css/website.css HTTP/1.1" 200 -

2016-03-09 19:20:04,879 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 200 -

2016-03-09 19:20:05,222 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "GET /report/static/src/js/subst.js HTTP/1.1" 200 -

2016-03-09 19:20:05,404 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "POST /web/dataset/call_kw/mail.compose.message/default_get HTTP/1.0" 200 -

2016-03-09 19:20:05,820 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "POST /web/dataset/call_kw/res.partner/search HTTP/1.0" 200 -

2016-03-09 19:20:05,888 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "POST /web/dataset/call_kw/res.partner/name_get HTTP/1.0" 200 -

2016-03-09 19:20:05,964 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "POST /web/dataset/call_kw/ir.attachment/read HTTP/1.0" 200 -

2016-03-09 19:20:06,018 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "POST /web/dataset/call_kw/email.template/name_get HTTP/1.0" 200 -

2016-03-09 19:20:06,286 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 200 -

2016-03-09 19:20:06,292 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /report/static/src/css/reset.min.css HTTP/1.1" 200 -

2016-03-09 19:20:06,295 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /website/static/src/css/website.css HTTP/1.1" 200 -

2016-03-09 19:20:06,300 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 200 -

2016-03-09 19:20:06,616 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /report/static/src/js/subst.js HTTP/1.1" 200 -

2016-03-09 19:20:06,821 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "POST /web/dataset/call_kw/mail.compose.message/onchange HTTP/1.0" 200 -

2016-03-09 19:20:07,051 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:07] "POST /web/dataset/call_kw/ir.attachment/read HTTP/1.0" 200 -

2016-03-09 19:20:13,279 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:13] "POST /web/dataset/call_kw/email.template/name_search

and the production server:

2016-03-09 19:20:03,652 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:03] "POST /web/dataset/call_button HTTP/1.0" 200 -

2016-03-09 19:20:03,932 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:03] "POST /web/dataset/call_kw/mail.compose.message/fields_view_get HTTP/1.0" 200 -

2016-03-09 19:20:04,339 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "POST /web/menu/load_needaction HTTP/1.0" 200 -

2016-03-09 19:20:04,867 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "GET /report/static/src/css/reset.min.css HTTP/1.1" 200 -

2016-03-09 19:20:04,871 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 200 -

2016-03-09 19:20:04,878 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "GET /website/static/src/css/website.css HTTP/1.1" 200 -

2016-03-09 19:20:04,879 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:04] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 200 -

2016-03-09 19:20:05,222 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "GET /report/static/src/js/subst.js HTTP/1.1" 200 -

2016-03-09 19:20:05,404 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "POST /web/dataset/call_kw/mail.compose.message/default_get HTTP/1.0" 200 -

2016-03-09 19:20:05,820 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "POST /web/dataset/call_kw/res.partner/search HTTP/1.0" 200 -

2016-03-09 19:20:05,888 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "POST /web/dataset/call_kw/res.partner/name_get HTTP/1.0" 200 -

2016-03-09 19:20:05,964 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:05] "POST /web/dataset/call_kw/ir.attachment/read HTTP/1.0" 200 -

2016-03-09 19:20:06,018 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "POST /web/dataset/call_kw/email.template/name_get HTTP/1.0" 200 -

2016-03-09 19:20:06,286 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 200 -

2016-03-09 19:20:06,292 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /report/static/src/css/reset.min.css HTTP/1.1" 200 -

2016-03-09 19:20:06,295 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /website/static/src/css/website.css HTTP/1.1" 200 -

2016-03-09 19:20:06,300 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 200 -

2016-03-09 19:20:06,616 30759 INFO ? werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "GET /report/static/src/js/subst.js HTTP/1.1" 200 -

2016-03-09 19:20:06,821 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:06] "POST /web/dataset/call_kw/mail.compose.message/onchange HTTP/1.0" 200 -

2016-03-09 19:20:07,051 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:07] "POST /web/dataset/call_kw/ir.attachment/read HTTP/1.0" 200 -

2016-03-09 19:20:13,279 30759 INFO fairmarket_prd werkzeug: 127.0.0.1 - - [09/Mar/2016 19:20:13] "POST /web/dataset/call_kw/email.template/name_search

And then the 504 error.. Is it a problem with postfix timing out when talking to odoo? How could I investigate further?

Thanks for any help! 

it's possible to do this correctly from the head company, but not from partners in the multishop.

Ale
on 3/9/16, 6:10 PM
0
Santi
On 3/15/16, 3:46 PM

We have resolved the issue. The problem was the production server did not resolve their own ip address and it did not load the css files.

We have added the url and ip in /etc/hosts. It's a bit annoying that Odoo did not show any notice or error in the logs.



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/9/16, 2:53 PM
Seen: 322 times
Last updated: 3/15/16, 3:46 PM