Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] mail: create constrain to avoid migration error when install
'to_mail_notif_and_email' module So in the mail module v16, it has a constrain call unique_mail_message_id_res_partner_id_if_set, but in the module 'to_mail_notif_and_email' we drop that constains and create a new with additional condition so when migrating from 15 to 16 it will get error when registry try to create the constaint. To avoid that, we should check if the module 'to_mail_notif_and_email' is installed then instanly create constrain index specify in that module
- Loading branch information