[MERGE] forward port branch 11.0 up to 1dbe4ea0d7
This commit is contained in:
+6
-1
@@ -723,6 +723,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentDate = viewDate.clone().startOf('M').startOf('w').startOf('d');
|
currentDate = viewDate.clone().startOf('M').startOf('w').startOf('d');
|
||||||
|
// !! ODOO FIX START !!
|
||||||
|
var now = getMoment();
|
||||||
|
// !! ODOO FIX END !!
|
||||||
|
|
||||||
for (i = 0; i < 42; i++) { //always display 42 days (should show 6 weeks)
|
for (i = 0; i < 42; i++) { //always display 42 days (should show 6 weeks)
|
||||||
if (currentDate.weekday() === 0) {
|
if (currentDate.weekday() === 0) {
|
||||||
@@ -745,7 +748,9 @@
|
|||||||
if (!isValid(currentDate, 'd')) {
|
if (!isValid(currentDate, 'd')) {
|
||||||
clsNames.push('disabled');
|
clsNames.push('disabled');
|
||||||
}
|
}
|
||||||
if (currentDate.isSame(getMoment(), 'd')) {
|
// !! ODOO FIX START !!
|
||||||
|
if (currentDate.date() === now.date() && currentDate.month() === now.month() && currentDate.year() === now.year()) {
|
||||||
|
// !! ODOO FIX END !!
|
||||||
clsNames.push('today');
|
clsNames.push('today');
|
||||||
}
|
}
|
||||||
if (currentDate.day() === 0 || currentDate.day() === 6) {
|
if (currentDate.day() === 0 || currentDate.day() === 6) {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ from contextlib import closing
|
|||||||
from distutils.version import LooseVersion
|
from distutils.version import LooseVersion
|
||||||
from reportlab.graphics.barcode import createBarcodeDrawing
|
from reportlab.graphics.barcode import createBarcodeDrawing
|
||||||
from PyPDF2 import PdfFileWriter, PdfFileReader
|
from PyPDF2 import PdfFileWriter, PdfFileReader
|
||||||
|
from collections import OrderedDict
|
||||||
|
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
@@ -604,7 +605,7 @@ class IrActionsReport(models.Model):
|
|||||||
if isinstance(self.env.cr, TestCursor):
|
if isinstance(self.env.cr, TestCursor):
|
||||||
return self.with_context(context).render_qweb_html(res_ids, data=data)[0]
|
return self.with_context(context).render_qweb_html(res_ids, data=data)[0]
|
||||||
|
|
||||||
save_in_attachment = {}
|
save_in_attachment = OrderedDict()
|
||||||
if res_ids:
|
if res_ids:
|
||||||
# Dispatch the records by ones having an attachment and ones requesting a call to
|
# Dispatch the records by ones having an attachment and ones requesting a call to
|
||||||
# wkhtmltopdf.
|
# wkhtmltopdf.
|
||||||
|
|||||||
Reference in New Issue
Block a user