mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
FIX web_date_warning Sending value to parent field.
This commit is contained in:
@@ -5,8 +5,8 @@ var basicFields = require('web.basic_fields');
|
|||||||
var fieldRegistry = require('web.field_registry');
|
var fieldRegistry = require('web.field_registry');
|
||||||
|
|
||||||
var _setValue = function(value) {
|
var _setValue = function(value) {
|
||||||
this._super.apply(this, value);
|
this._super(value);
|
||||||
if (this.attrs.options.warn_future || this.options.warn_past) {
|
if (this.attrs.options.warn_future || this.attrs.options.warn_past) {
|
||||||
var now = moment();
|
var now = moment();
|
||||||
var val = moment(value);
|
var val = moment(value);
|
||||||
var ms_diff = val - now;
|
var ms_diff = val - now;
|
||||||
|
|||||||
Reference in New Issue
Block a user