Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
5754aa08
Commit
5754aa08
authored
3 years ago
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify shift_registration state condition to match actual use
parent
ab03098c
dev_principale
…
2144-check-if-meal-voucher-amount-is-relevant
2251-shift-screen-associate
3408-archived-products-removed
3882-explication-pour-suppression-presence
5873-prevent-special-status-to-be-lost-when-adding-capital-shares
6833--nouveaux-sans-statut
ajout_module_exports_pour_capital_membres
branch_prod_anticipee_Cagette
correctifs_lacagette_membership
curtlery_pos_meal_voucher
dev_cooperatic
docker
evolution_bdm
graoucoop_backup
graoucoop_prod
lacagette_prod
nouvelle_implentation_mails_rappel
pour_mep
revert-c649eae1
supercafoutch-prod-20220811
supercafoutch_prod
ticket_6464
20210701
test
supercafoutch_20240609_115709
supercafoutch_20240212_082431
supercafoutch_20240107_181851
supercafoutch_prod_until_240107
supercafoutch-prod-20220811
supercafoutch-230915
supercafoutch-230823
2 merge requests
!16
Développements Cooperatic (Aide à la commande, mails suite à l'absence d'un service)
,
!13
Modify shift_registration state condition to match actual use
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
lacagette_shift_registrations.py
.../lacagette_shifts/models/lacagette_shift_registrations.py
+1
-1
No files found.
lacagette_addons/lacagette_shifts/models/lacagette_shift_registrations.py
View file @
5754aa08
...
...
@@ -25,7 +25,7 @@ class ShiftRegistration(models.Model):
now
=
datetime
.
datetime
.
now
()
yesterday
=
now
-
datetime
.
timedelta
(
hours
=
24
)
reg_targets
=
shift_env
.
search
([
(
'state'
,
'in'
,
[
'
open'
,
'
excused'
]),
(
'state'
,
'in'
,
[
'excused'
]),
(
'date_begin'
,
'>='
,
yesterday
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)),
(
'date_begin'
,
'<'
,
now
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
))
])
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment