mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[9.0][FIX] stock_cycle_count: Do not propose cycle counts in the past.
This commit is contained in:
@@ -152,6 +152,8 @@ class StockCycleCountRule(models.Model):
|
||||
latest_inventory,
|
||||
DEFAULT_SERVER_DATETIME_FORMAT) + timedelta(
|
||||
days=period)
|
||||
if next_date < datetime.today():
|
||||
next_date = datetime.today()
|
||||
except Exception as e:
|
||||
raise UserError(
|
||||
_('Error found determining the frequency of periodic '
|
||||
|
||||
Reference in New Issue
Block a user