Browse Source

[FIX] Future Activities filter doesn't break.

pull/370/head
mreficent 6 years ago
parent
commit
ecfd179aee
  1. 2
      mail_activity_done/__manifest__.py
  2. 2
      mail_activity_done/models/mail_activity.py
  3. 2
      mail_activity_done/views/mail_activity_views.xml

2
mail_activity_done/__manifest__.py

@ -2,7 +2,7 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Mail Activity Done",
"version": "11.0.1.0.0",
"version": "11.0.1.1.0",
"author": "Eficent,"
"Odoo Community Association (OCA)",
"license": "LGPL-3",

2
mail_activity_done/models/mail_activity.py

@ -14,7 +14,7 @@ class MailActivity(models.Model):
'Completed Date', index=True, readonly=True,
)
@api.depends('done')
@api.depends('date_deadline', 'done')
def _compute_state(self):
super(MailActivity, self)._compute_state()
for record in self.filtered(lambda activity: activity.done):

2
mail_activity_done/views/mail_activity_views.xml

@ -39,7 +39,7 @@
<attribute name="domain">[('date_deadline', '=', context_today().strftime('%Y-%m-%d')), ('done', '!=', True)]</attribute>
</filter>
<filter name="activities_upcoming_all" position="attributes">
<attribute name="domain">[('activity_ids.date_deadline', '&gt;', context_today().strftime('%Y-%m-%d')), ('done', '!=', True)]</attribute>
<attribute name="domain">[('date_deadline', '&gt;', context_today().strftime('%Y-%m-%d')), ('done', '!=', True)]</attribute>
</filter>
</field>
</record>

Loading…
Cancel
Save