[IMP] removed date.today() in pyeval

bzr revid: nicolas.vanhoren@openerp.com-20121130095228-mffq2407lq7tf8jj
This commit is contained in:
niv-openerp 2012-11-30 10:52:28 +01:00
parent 7b48ff70be
commit 94dca54e38
1 changed files with 0 additions and 5 deletions

View File

@ -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