Browse Source

🚑 mail_all incorrect counter

pull/210/head
KolushovAlexandr 5 years ago
parent
commit
fc03db6322
No known key found for this signature in database GPG Key ID: C3E04B793421FD2
  1. 6
      mail_all/README.rst
  2. 2
      mail_all/__manifest__.py
  3. 5
      mail_all/doc/changelog.rst
  4. 2
      mail_all/static/src/js/mail_all.js
  5. 2
      mail_all/static/src/xml/menu.xml

6
mail_all/README.rst

@ -23,7 +23,7 @@ Maintainers
----------- -----------
* `IT-Projects LLC <https://it-projects.info>`__ * `IT-Projects LLC <https://it-projects.info>`__
To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/11.0/mail_all/>`__.
To get a guaranteed support you are kindly requested to purchase the module at `odoo apps store <https://apps.odoo.com/apps/modules/12.0/mail_all/>`__.
Thank you for understanding! Thank you for understanding!
@ -32,9 +32,9 @@ Maintainers
Further information Further information
=================== ===================
Demo: http://runbot.it-projects.info/demo/mail_addons/11.0
Demo: http://runbot.it-projects.info/demo/mail_addons/12.0
HTML Description: https://apps.odoo.com/apps/modules/11.0/mail_all/
HTML Description: https://apps.odoo.com/apps/modules/12.0/mail_all/
Usage instructions: `<doc/index.rst>`_ Usage instructions: `<doc/index.rst>`_

2
mail_all/__manifest__.py

@ -8,7 +8,7 @@
"category": "Discuss", "category": "Discuss",
# "live_test_url": "", # "live_test_url": "",
"images": ['images/1.jpg'], "images": ['images/1.jpg'],
"version": "12.0.1.0.0",
"version": "12.0.1.0.1",
"application": False, "application": False,
"author": "IT-Projects LLC, Pavel Romanchenko", "author": "IT-Projects LLC, Pavel Romanchenko",

5
mail_all/doc/changelog.rst

@ -1,3 +1,8 @@
`1.0.1`
-------
- **Fix:** Incorrect counter
`1.0.0` `1.0.0`
------- -------

2
mail_all/static/src/js/mail_all.js

@ -21,7 +21,7 @@ Manager.include({
this._addMailbox({ this._addMailbox({
id: 'channel_all', id: 'channel_all',
name: _t("All Messages"), name: _t("All Messages"),
mailboxCounter: data.needaction_inbox_counter || 0,
mailboxCounter: 0,
}); });
} }
}, },

2
mail_all/static/src/xml/menu.xml

@ -8,8 +8,6 @@
<t t-jquery="div[data-thread-id=mailbox_starred]" t-operation="after"> <t t-jquery="div[data-thread-id=mailbox_starred]" t-operation="after">
<div t-attf-class="o_mail_discuss_title_main o_mail_mailbox_title_all o_mail_discuss_item #{(activeThreadID == 'channel_all') ? 'o_active': ''}" data-thread-id="mailbox_channel_all"> <div t-attf-class="o_mail_discuss_title_main o_mail_mailbox_title_all o_mail_discuss_item #{(activeThreadID == 'channel_all') ? 'o_active': ''}" data-thread-id="mailbox_channel_all">
<span class="o_channel_name mail_all"> <i class="fa fa-database"/> All messages </span> <span class="o_channel_name mail_all"> <i class="fa fa-database"/> All messages </span>
<t t-set="counter" t-value="starredCounter"/>
<t t-call="mail.discuss.SidebarCounter"/>
</div> </div>
</t> </t>
</t> </t>

Loading…
Cancel
Save