Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5 Ответы
3291 Представления

Hello everyone,




Can you help me with this error: 


AttributeError: 'crm.lead' object has no attribute '_is_notification_scheduled'


It appears when I want to create CRM lead record, SALE record, or HELPDESK record.


I am using Odoo 17 Enterprise version.




Class MailThread with method _notify_thread with using self._is_notification_scheduled. This class inherit "mail.thread" which has def _is_notification_scheduled. Also I checked the  module Lead ("crm.lead") to see that it inherits "mail thread cc" 




Lead with inherit "mail.thread.cc" (I tried to inherit "mail.thread" but doesn't see this module)




Error in CRM:


File "/home/zerus/odoo-17.0/odoo/addons/mail/models/mail_thread py", line 2175, in message_post

    self._notify_thread(new_message, msg_values, **notif_kwargs)

  File "/home/zerus/odoo-17.0/enterprise/mail_mobile/models/mail_thread py", line 25, in _notify_thread

    scheduled_date = self._is_notification_scheduled(kwargs.get('scheduled_date'))

                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'crm.lead' object has no attribute '_is_notification_scheduled'



Error in module HelpDesk:


File "/home/zerus/odoo-17.0/odoo/addons/mail/models/mail_thread py", line 2175, in message_post

    self._notify_thread(new_message, msg_values, **notif_kwargs)

  File "/home/zerus/odoo-17.0/enterprise/mail_mobile/models/mail_thread py", line 25, in _notify_thread

    scheduled_date = self._is_notification_scheduled(kwargs.get('scheduled_date'))

                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'helpdesk.ticket' object has no attribute '_is_notification_scheduled'



I looking forward to your answer,


Best regards!

Аватар
Отменить
Лучший ответ

Hello everyone,

using the latest version from the Github odoo 17.0 branch combined with the latest version of the odoo-ee addons has solved the problem for me.

Kind regards

Аватар
Отменить
Лучший ответ

Hi,
i had the same error previously, i updated my odoo 17.0 docker image and it was good for me

Аватар
Отменить

how do I update my docker Image becausse I have also odoo on docker but can not find how to do this.

Лучший ответ

Hi,

_is_notification_scheduled is a function that comes in the model "mail.thread" . please try to upgrade the module "mail" from your Apps. if the issue still exists then try to command your custom addons path from odoo conf, to verify that the error is not rising from your custom modules.


Hope it helps

Аватар
Отменить

The mail module was not activated. I have reactivated the module. I have updated the module and restart the server. I did a upgrade of all the modules and restart the server again. But still the same error.

Лучший ответ

Probably odoo enterprise has some updated, try upgrade module, for example , try upgrade crm module to see it help sir

Аватар
Отменить
Лучший ответ

I have the same error.  Did you find a solution?

AttributeError: 'crm.lead' object has no attribute '_is_notification_scheduled'


Аватар
Отменить

Please upgrade your enterprise v17 module.

Related Posts Ответы Просмотры Активность
0
июн. 23
2170
0
нояб. 21
1178
0
нояб. 16
4025
1
февр. 25
731
0
июл. 24
571