This question has been flagged

I made a module, tested on a local environment. And now I am ready for uploading it to Odoo.sh

So I did it, I uploaded my module into a new branch to test it. But after it was done with the new commit. The test gave me a 'warning' signal. "Shell" and "Mails" options were unavailable. I could still connect and test my module tho. It was working fine.

I went to the install.log and saw this as the last line: 

2018-08-07 21:59:48,254 4 INFO my-route-to-my-odoo-sh odoo.service.server: All post-tested in 592.64s, 88840 queries
2018-08-07 21:59:48,254 4 INFO my-route-to-my-odoo-sh odoo.service.server: Initiating shutdown
2018-08-07 21:59:48,254 4 INFO my-route-to-my-odoo-sh odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.

I guess the Odoo service is trying to shutdown or restart... how can I help it shutdown/restart?
For the moment I tried installing my module on a new Odoo branch and look for the moment the warning raises and see what was the error. I'm not 100% sure this is the error, but this is what I could find almost at the same time the warning was raised.

2018-08-07 21:50:21,813 4 INFO my-route-to-my-odoo-sh odoo.tests.common.phantomjs: Deprecation warning: value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
I did what the error suggested and found out it has to be with the type of dates inside js scripts. 
It warns you about how to handle dates:

//US local format
var a = new Date('1/1/2016'); 
//"Fri Jan 01 2016 00:00:00 GMT-0600 (Central Standard Time)"

//ISO 8601
var a = new Date('2016-01-01');
//"Thu Dec 31 2015 18:00:00 GMT-0600 (Central Standard Time)"

The only place where I used dates was inside a form. I'll try changing the date format and see if it works. 

If I try to make a pull into my master as it currently is, it might still raise the warning.

Any help would be appreciated.
Thanks in advance. 
Jean

Avatar
Discard