From 2a2fc36fa6a55e3a45fe04af1b12e5e98131be0a Mon Sep 17 00:00:00 2001 From: Bernat Brunet Date: Tue, 15 Dec 2020 15:54:44 +0100 Subject: [PATCH] Fix bug on backport from 5.2 for the account_asset improve (last commit) --- account_asset.diff | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/account_asset.diff b/account_asset.diff index b1a3bd5..a250b90 100644 --- a/account_asset.diff +++ b/account_asset.diff @@ -11,3 +11,12 @@ index fc23ca8..cc10240 100644 ], depends=['latest_move_date', 'next_depreciation_date'], help=('The date must be between the last update/depreciation date ' +@@ -866,7 +866,7 @@ class UpdateAsset(Wizard): + asset = Asset(Transaction().context['active_id']) + latest_move_date = self.show_move.latest_move_date + next_date = self.show_move.next_depreciation_date +- if not (latest_move_date < self.show_move.date < next_date): ++ if not (latest_move_date < self.show_move.date <= next_date): + raise ValueError('The update move date is invalid') + move = self.get_move(asset) + move.lines = self.get_move_lines(asset)