mirror of https://github.com/OCA/social.git
[FIX] Future Activities filter doesn't break.
parent
7f92ffe401
commit
ecfd179aee
|
@ -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",
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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', '>', context_today().strftime('%Y-%m-%d')), ('done', '!=', True)]</attribute>
|
||||
<attribute name="domain">[('date_deadline', '>', context_today().strftime('%Y-%m-%d')), ('done', '!=', True)]</attribute>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue