Skip to content
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

Merged

Conversation

Ommo73
Copy link

@Ommo73 Ommo73 commented May 21, 2019

No description provided.


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,

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

@Ommo73 Ommo73 force-pushed the 12.0-mail_private-internal_users_checked branch from d5c62e0 to dc184cc Compare August 13, 2019 11:31
Copy link

@Ramil-Mukhametzyanov Ramil-Mukhametzyanov left a 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

Copy link

@em230418 em230418 left a 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
  1. Надо в changelog добавить, что исправили. Соотвественно версию поднять

Первый сценарий покрыть тестом

Copy link

@kaadevelop kaadevelop left a 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

@Ommo73
Copy link
Author

Ommo73 commented Aug 28, 2019

  • Захожу как админ
  • Discuss -> Direct Messages
  • Добавляю Marc Demo
  • Нажимаю на шестеренку
  • Скроллю вниз, нажимаю на Send Internal message
  • Ввожу сообщение, нажимаю send. Появляется ошибка: TypeError: self.fields.thread is undefined
  1. Надо в changelog добавить, что исправили. Соотвественно версию поднять

Первый сценарий покрыть тестом

скрыл эту кнопку на страницах настроек канала, она там не нужна

Copy link

@em230418 em230418 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это не сделано:

Надо в changelog добавить, что исправили. Соотвественно версию поднять

@Ommo73 Ommo73 force-pushed the 12.0-mail_private-internal_users_checked branch from d93aa10 to bb21f42 Compare September 20, 2019 12:38
Copy link
Contributor

@itpp-bot itpp-bot left a 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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has to be tested

@Ommo73 Ommo73 force-pushed the 12.0-mail_private-internal_users_checked branch from bb21f42 to ee4c0bd Compare October 10, 2019 09:43
@em230418
Copy link

I approve to merge it now

@itpp-bot itpp-bot merged commit 3678cd3 into itpp-labs:12.0 Oct 10, 2019
@itpp-bot
Copy link
Contributor

Approved by @em230418

sent by 👷‍♂️ Merge Bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants