-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
⚡ mail_private New: internal users are flagged automatically #193
⚡ mail_private New: internal users are flagged automatically #193
Conversation
mail_private/models.py
Outdated
|
||
recipient_ids = [r.partner_id for r in follower_ids if r.partner_id] | ||
# channel_ids = [c.channel_id for c in follower_ids if c.channel_id] | ||
|
||
for recipient in recipient_ids: | ||
result.append({ | ||
'checked': len(recipient.user_ids) > 0, | ||
'checked': recipient.user_ids.id in internal_ids, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could suggest smth like
not any(recipient.user_ids.mapped('share'))
so there is no need in get_internal_users_ids method
d5c62e0
to
dc184cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The static/description/index.html file contains a reference to Odoo 11.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Захожу как админ
- Discuss -> Direct Messages
- Добавляю Marc Demo
- Нажимаю на шестеренку
- Скроллю вниз, нажимаю на Send Internal message
- Ввожу сообщение, нажимаю send. Появляется ошибка: TypeError: self.fields.thread is undefined
- Надо в changelog добавить, что исправили. Соотвественно версию поднять
Первый сценарий покрыть тестом
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 installable modules are updated:
├─ mail_multi_website/
| ├─ README.rst
| ├─ __manifest__.py
| ├─ doc/
| | └─ index.rst
| └─ static/
| └─ description/
| └─ index.html
└─ mail_private/
├─ models.py
└─ static/
└─ src/
└─ xml/
└─ mail_private.xml
Not installable modules remain unchanged.
No new features in doc/changelog.rst files of installable modules
sent by review-bot
скрыл эту кнопку на страницах настроек канала, она там не нужна |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это не сделано:
Надо в changelog добавить, что исправили. Соотвественно версию поднять
d93aa10
to
bb21f42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 installable modules are updated:
├─ mail_multi_website/
| ├─ README.rst
| ├─ __manifest__.py
| ├─ doc/
| | └─ index.rst
| └─ static/
| └─ description/
| └─ index.html
└─ mail_private/
├─ __manifest__.py
├─ doc/
| └─ changelog.rst
├─ models.py
└─ static/
└─ src/
└─ xml/
└─ mail_private.xml
Not installable modules remain unchanged.
sent by ✌️ Odoo Review Bot
------- | ||
|
||
- **Improvement:** refactoring code | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has to be tested
bb21f42
to
ee4c0bd
Compare
I approve to merge it now |
Approved by @em230418
|
No description provided.