[IMP] removed date.today() in pyeval
bzr revid: nicolas.vanhoren@openerp.com-20121130095228-mffq2407lq7tf8jj
This commit is contained in:
parent
7b48ff70be
commit
94dca54e38
|
@ -434,11 +434,6 @@ openerp.web.pyeval = function (instance) {
|
|||
throw new Error('ValueError: No known conversion for ' + m);
|
||||
}));
|
||||
},
|
||||
today: py.classmethod.fromJSON(function () {
|
||||
var d = new Date();
|
||||
return py.PY_call(
|
||||
datetime.date, [d.getUTCFullYear(), d.getUTCMonth() + 1, d.getUTCDate()]);
|
||||
}),
|
||||
__eq__: function (other) {
|
||||
return (this.year === other.year
|
||||
&& this.month === other.month
|
||||
|
|
Loading…
Reference in New Issue