Forum

Benvenuto!

Questo è il forum ufficiale dell'Associazione Odoo Italia. Dopo esserti registrato potrai partecipare ponendo domande o rispondendo a quelle esistenti. Non scordarti di compilare il tuo profilo e consultare le linee guida prima di iniziare a scrivere.

0

[14CE] Errore con prt_mail_messages_draft

Avatar
Simone Sanfilippo

Buongiorno, ho installato il modulo "prt_mail_messages_draft" e da quel momento ho questo errore:

Odoo Server Error
Traceback (most recent call last):
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 685, in dispatch
    result = self._call_function(**self.params)
  File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 361, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Program Files\Odoo 14.0\server\odoo\service\model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 349, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 908, in __call__
    return self.method(*args, **kw)
  File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 533, in response_wrap
    response = f(*args, **kw)
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\web\controllers\main.py", line 1372, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\web\controllers\main.py", line 1364, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Program Files\Odoo 14.0\server\odoo\api.py", line 399, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Program Files\Odoo 14.0\server\odoo\api.py", line 386, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\mail\models\mail_channel.py", line 274, in unlink
    return super(Channel, self).unlink()
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 14, in unlink
    [("res_model", "=", self._name), ("res_id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\prt_mail_messages_draft\models\prt_mail_draft.py", line 222, in unlink
    [("model", "=", self._name), ("id", "in", self.ids)]
  File "C:\Program Files\Odoo 14.0\server\odoo\addons\dms\models\base.py", line 13, in unlink
    self.env["dms.file"].sudo().search(
  File "C:\Program Files\Odoo 14.0\server\odoo\models.py", line 5074, in sudo
    return self.with_env(self.env(su=flag))
  File "C:\Program Files\Odoo 14.0\server\odoo\api.py", line 510, in __call__
    return Environment(cr, uid, context, su)
  File "C:\Program Files\Odoo 14.0\server\odoo\api.py", line 449, in __new__
    env, envs = None, cls.envs
  File "C:\Program Files\Odoo 14.0\server\odoo\tools\func.py", line 114, in __get__
    return self.fget.__get__(None, owner)()
  File "C:\Program Files\Odoo 14.0\server\odoo\api.py", line 420, in envs
    return getattr(cls._local, 'environments', ())
  File "C:\Program Files\Odoo 14.0\python\lib\site-packages\werkzeug\local.py", line 72, in __getattr__
    return self.__storage__[self.__ident_func__()][name]
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 641, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Program Files\Odoo 14.0\server\odoo\http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
RecursionError: maximum recursion depth exceeded while calling a Python object

Se provo a disinstallarlo mi da l'errore medesimo, se lo cancello fisicamente dagli addons non mi manda le mail.

Quindi ho provato ad eliminare il modello, ma mi dice che è usato (in realtà da nessuno) e non me lo fa cancellare.

Come posso risolverlo?

Avatar
Abbandona
2 Risposte
0
Avatar
Simone Sanfilippo
Migliore risposta

Grazie a tutti, ho risolto il problema commentando la parte di codice che va in errore, quindi disinstallato il modulo regolarmente.

Grazie

Avatar
Abbandona
0
Avatar
Francesco ooops
Migliore risposta

Essendo un modulo di terze parti, probabilmente dovresti contattare lo sviluppatore

Avatar
Abbandona