Skip to content

Commit 49cb3d8

Browse files
committedJan 31, 2019
[MERGE] forward port branch saas-11.3 up to aeed32d
2 parents c50e82c + aeed32d commit 49cb3d8

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed
 

‎addons/web/static/lib/tempusdominus/tempusdominus.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -2093,6 +2093,9 @@ var TempusDominusBootstrap4 = function ($) {
20932093
}
20942094

20952095
currentDate = this._viewDate.clone().startOf('M').startOf('w').startOf('d');
2096+
// !! ODOO FIX START !!
2097+
var now = getMoment();
2098+
// !! ODOO FIX END !!
20962099

20972100
for (i = 0; i < 42; i++) {
20982101
//always display 42 days (should show 6 weeks)
@@ -2125,7 +2128,9 @@ var TempusDominusBootstrap4 = function ($) {
21252128
if (!this._isValid(currentDate, 'd')) {
21262129
clsName += ' disabled';
21272130
}
2128-
if (currentDate.isSame(this.getMoment(), 'd')) {
2131+
// !! ODOO FIX START !!
2132+
if (currentDate.date() === now.date() && currentDate.month() === now.month() && currentDate.year() === now.year()) {
2133+
// !! ODOO FIX END !!
21292134
clsName += ' today';
21302135
}
21312136
if (currentDate.day() === 0 || currentDate.day() === 6) {

‎odoo/addons/base/models/ir_actions_report.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from distutils.version import LooseVersion
2424
from reportlab.graphics.barcode import createBarcodeDrawing
2525
from PyPDF2 import PdfFileWriter, PdfFileReader
26+
from collections import OrderedDict
2627

2728

2829
_logger = logging.getLogger(__name__)
@@ -643,7 +644,7 @@ def render_qweb_pdf(self, res_ids=None, data=None):
643644
if isinstance(self.env.cr, TestCursor):
644645
return self.with_context(context).render_qweb_html(res_ids, data=data)[0]
645646

646-
save_in_attachment = {}
647+
save_in_attachment = OrderedDict()
647648
if res_ids:
648649
# Dispatch the records by ones having an attachment and ones requesting a call to
649650
# wkhtmltopdf.

‎setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requires =
99
libxslt-python
1010
pychart
1111
pyparsing
12-
python(abi) = 3.6
12+
python(abi) >= 3.6
1313
python3-babel
1414
python3-decorator
1515
python3-docutils

‎setup/redhat/postinstall.sh

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ ODOO_LOG_DIR=/var/log/odoo
1010
ODOO_LOG_FILE=$ODOO_LOG_DIR/odoo-server.log
1111
ODOO_USER="odoo"
1212

13+
if [ -d /usr/lib/python3.7 ]; then
14+
SITE_PACK_DIR37=/usr/lib/python3.7/site-packages
15+
[[ ! -d ${SITE_PACK_DIR37} ]] && mkdir -p ${SITE_PACK_DIR37}
16+
ln -s /usr/lib/python3.6/site-packages/odoo ${SITE_PACK_DIR37}/odoo
17+
fi
18+
1319
if ! getent passwd | grep -q "^odoo:"; then
1420
groupadd $ODOO_GROUP
1521
adduser --system --no-create-home $ODOO_USER -g $ODOO_GROUP

0 commit comments

Comments
 (0)
Please sign in to comment.