[REF] web, *: update bootstrap-datetimepicker to tempusdominus

* website_form, debian

Our old library for datetimepicker for bootstrap 3 is deprecated and
an updated version is developed by the same team under the new name
"tempusdominus", for bootstrap 4.

The lib is imported by taking the *unminified build* JS and the *src*
scss. Odoo is also bundling the lib better by putting the scss file
in both backend and frontend assets instead of only in common (so that
the scss is compiled differently for the frontend and the backend).

Note: the lib also needed to be patched inline to solve a bug at one
line.
This commit is contained in:
qsm-odoo
2018-07-27 12:36:54 +02:00
parent 05e62cf0cf
commit 6692919d1e
10 changed files with 2900 additions and 2727 deletions
@@ -2430,7 +2430,7 @@ QUnit.module('basic_fields', {
form.destroy();
});
QUnit.test('datetime field in form view', function (assert) {
QUnit.test('datetime field in form view 2', function (assert) {
assert.expect(1);
this.data.partner.fields.datetime.default = "2017-08-02 12:00:05";
@@ -2449,8 +2449,7 @@ QUnit.module('basic_fields', {
});
testUtils.patch(basicFields.FieldDate, {
_setValue: function () {
throw "The time format of the language must be taken into account."
return this._super.apply(this, arguments);
throw "The time format of the language must be taken into account.";
},
});
form.$buttons.find('.o_form_button_create').click();