Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bluemind4-connector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
bluemind4-connector
Compare revisions
02a17cc9dbfb77178b6d3fcec608f2c210a8af2d to 23f84b6a7d83fe5f9da3f0d6cbffbe1ef9e02ce6
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
lefilament/bluemind4-connector
Select target project
No results found
23f84b6a7d83fe5f9da3f0d6cbffbe1ef9e02ce6
Select Git revision
Swap
Target
lefilament/bluemind4-connector
Select target project
lefilament/bluemind4-connector
1 result
02a17cc9dbfb77178b6d3fcec608f2c210a8af2d
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
[FIX] test when no organizer set
· 4b360aa1
Rémi - Le Filament
authored
3 years ago
4b360aa1
[FIX] stop date for all day long events
· 23f84b6a
Rémi - Le Filament
authored
3 years ago
23f84b6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/calendar_event.py
+2
-1
2 additions, 1 deletion
models/calendar_event.py
models/res_users.py
+2
-2
2 additions, 2 deletions
models/res_users.py
with
4 additions
and
3 deletions
models/calendar_event.py
View file @
23f84b6a
...
...
@@ -108,7 +108,8 @@ class CalendarEvent(models.Model):
# Dates handling, with timezones
if
bm_event
.
value
.
main
.
dtstart
.
precision
.
value
==
"
Date
"
:
start
=
bm_event
.
value
.
main
.
dtstart
.
iso8601
stop
=
bm_event
.
value
.
main
.
dtend
.
iso8601
stop_bm
=
bm_event
.
value
.
main
.
dtend
.
iso8601
stop
=
fields
.
Date
().
to_string
(
fields
.
Date
().
subtract
(
fields
.
Date
().
to_date
(
stop_bm
),
days
=
1
))
data
.
update
({
"
allday
"
:
True
,
"
start_date
"
:
start
,
"
stop_date
"
:
stop
})
else
:
utc
=
timezone
(
"
UTC
"
)
...
...
This diff is collapsed.
Click to expand it.
models/res_users.py
View file @
23f84b6a
...
...
@@ -169,9 +169,9 @@ class ResUser(models.Model):
# Only if Organizer is the same as Odoo user or if is not linked to
# any active Odoo internal user
if
(
bm_event
.
value
.
main
.
organizer
not
bm_event
.
value
.
main
.
organizer
or
(
bm_event
.
value
.
main
.
organizer
and
(
bm_event
.
value
.
main
.
organizer
.
mailto
==
self
.
partner_id
.
email
or
bm_event
.
value
.
main
.
organizer
.
mailto
not
in
odoo_users_emails
)
or
bm_event
.
value
.
main
.
organizer
.
mailto
not
in
odoo_users_emails
)
)
):
events_to_create
.
append
(
Calendar
.
_bm_to_odoo_values
(
bm_event
))
if
events_to_create
:
...
...
This diff is collapsed.
Click to expand it.