Files
reporting-engine/bi_sql_editor/models
GuillemCForgeFlow fdec58782b [IMP]bi_sql_editor: archive Scheduled Action to not recreate when resetting the SQL View
Based on the agreed solution: https://github.com/OCA/reporting-engine/pull/903#pullrequestreview-2273835493. It is best to archive the Scheduled Action every time you set back to the draft state. Then, when creating the SQL view, if it is a materialized view, unarchive the Scheduled Action if already exists, otherwise create it from scratch.
Then, if the SQL View is deleted, also make sure to remove the Scheduled Action if there is one assigned as it has not been done in the `button_set_draft` method
2024-09-02 12:56:55 +02:00
..