diff --git a/account_asset_management/__manifest__.py b/account_asset_management/__manifest__.py index 1743f46c..c7cc952f 100644 --- a/account_asset_management/__manifest__.py +++ b/account_asset_management/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Assets Management', - 'version': '12.0.1.1.0', + 'version': '12.0.1.1.1', 'license': 'AGPL-3', 'depends': [ 'account', diff --git a/account_asset_management/models/account_asset_line.py b/account_asset_management/models/account_asset_line.py index defea02b..5fda7e66 100644 --- a/account_asset_management/models/account_asset_line.py +++ b/account_asset_management/models/account_asset_line.py @@ -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 "