Skip to content

Commit

Permalink
[OU-FIX] calendar: Avoid fake recurrent events
Browse files Browse the repository at this point in the history
If no day is selected, there's not really recurrency, and Odoo will
complain when applying it, so we prevent to insert such events in the
recurrence table.
  • Loading branch information
pedrobaeza committed Jan 6, 2022
1 parent 03b03e9 commit 9b81457
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def fill_calendar_recurrence_table(env):
FROM calendar_event
WHERE recurrency AND recurrence_id IS NULL
AND (recurrent_id IS NULL OR recurrent_id = 0)
AND (mo OR tu OR we OR th OR fr OR sa OR su)
RETURNING id,base_event_id
)
UPDATE calendar_event ce
Expand Down

0 comments on commit 9b81457

Please sign in to comment.