Odoo Help

0

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

By
Ale
on 3/9/16, 2:53 PM 483 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.



About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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