Issue 11869

Title
Prevent negative timedelta
Priority
bug
Status
resolved
Nosy list
acaubet, ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2022-11-07.18:27:02 by ced, last changed 5 days ago by roundup-bot.

Messages

New changeset 9b6ac419e620 by Cédric Krier in branch 'default':
Allow empty timedelta
https://hg.tryton.org/tryton-env/rev/9b6ac419e620
New changeset 521acd80c11a by Cédric Krier in branch 'default':
Allow empty timedelta
https://hg.tryton.org/trytond/rev/521acd80c11a
New changeset 9bc6da054748 by Cédric Krier in branch 'default':
Allow empty timedelta
https://hg.tryton.org/modules/marketing_automation/rev/9bc6da054748
New changeset 8c6dd1d56cae by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/tryton-env/rev/8c6dd1d56cae
New changeset 5b894db18c81 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/trytond/rev/5b894db18c81
New changeset 3c38dca8e085 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/timesheet/rev/3c38dca8e085
New changeset 9dfe6423a539 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/stock_supply_production/rev/9dfe6423a539
New changeset ede0bd748b67 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/stock_supply/rev/ede0bd748b67
New changeset da3c59176793 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/stock_lot_sled/rev/da3c59176793
New changeset 49fa6a5f196e by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/stock/rev/49fa6a5f196e
New changeset 29c487454fe9 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/sale/rev/29c487454fe9
New changeset 3abc70403fb8 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/purchase/rev/3abc70403fb8
New changeset 5abb769a1b1e by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/project/rev/5abb769a1b1e
New changeset 2022da3c17d7 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/production_work/rev/2022da3c17d7
New changeset 781891848d05 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/production/rev/781891848d05
New changeset 625fa323841b by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/notification_email/rev/625fa323841b
New changeset 2eee3d9e4705 by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/marketing_automation/rev/2eee3d9e4705
New changeset ac34042693cc by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/account_payment_stripe/rev/ac34042693cc
New changeset 69c3eaa4293b by Cédric Krier in branch 'default':
Enforce positive timedelta
https://hg.tryton.org/modules/account_payment_clearing/rev/69c3eaa4293b
Author: [hidden] (acaubet)
Date: 2022-11-08.10:14:12

For me, most of TimeDelta fields should have this restriction.
How can a (supply_period, project plan work duration, location lead time, marketing delay, purchase_process_after...) be negative?

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-11-07.18:27:02

It should not be allowed to enter negative timesheet, this is a physical measure of time so it can not be negative.

History
Date User Action Args
2022-11-24 23:05:20roundup-botsetmessages: + msg80204
2022-11-24 23:05:15roundup-botsetmessages: + msg80203
2022-11-24 23:05:09roundup-botsetmessages: + msg80202
2022-11-24 23:05:05roundup-botsetmessages: + msg80201
2022-11-24 19:18:40roundup-botsetmessages: + msg80190
2022-11-24 19:18:37roundup-botsetmessages: + msg80189
2022-11-24 19:18:34roundup-botsetmessages: + msg80188
2022-11-24 19:18:30roundup-botsetmessages: + msg80187
2022-11-24 19:18:23roundup-botsetmessages: + msg80186
2022-11-24 19:18:13roundup-botsetmessages: + msg80185

Showing 10 items. Show all history (warning: this could be VERY long)