2
0

[FIX][12.0]asset_management - fix date string compare

This commit is contained in:
Luc De Meyer 2019-08-14 22:34:05 +02:00 committed by Rodrigo
parent 66f3c3198a
commit fabe61b412
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
{ {
'name': 'Assets Management', 'name': 'Assets Management',
'version': '12.0.1.1.0', 'version': '12.0.1.1.1',
'license': 'AGPL-3', 'license': 'AGPL-3',
'depends': [ 'depends': [
'account', 'account',

View File

@ -139,7 +139,7 @@ class AccountAssetLine(models.Model):
check = asset_lines.filtered( check = asset_lines.filtered(
lambda l: l.type != 'create' and lambda l: l.type != 'create' and
(l.init_entry or l.move_check) and (l.init_entry or l.move_check) and
l.line_date < vals['line_date']) l.line_date < fields.Date.to_date(vals['line_date']))
if check: if check:
raise UserError( raise UserError(
_("You cannot set the Asset Start Date " _("You cannot set the Asset Start Date "