mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX][12.0]asset_management - fix date string compare
This commit is contained in:
@@ -139,7 +139,7 @@ class AccountAssetLine(models.Model):
|
||||
check = asset_lines.filtered(
|
||||
lambda l: l.type != 'create' 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:
|
||||
raise UserError(
|
||||
_("You cannot set the Asset Start Date "
|
||||
|
||||
Reference in New Issue
Block a user