Skip to content

Commit

Permalink
[FIX] business_requirement_deliverable: Portal search by stakeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo authored and Victor M.M. Torres committed Aug 19, 2019
1 parent 6e3323a commit 1762d7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions business_requirement/models/business.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def message_post(
subject = 'Re: %s-%s' % (br_rec.name, br_rec.description)
message = super(BusinessRequirement, self.with_context(
mail_create_nosubscribe=True)).message_post(
body=body,
subject=subject,
message_type=message_type,
subtype=subtype,
Expand Down
3 changes: 2 additions & 1 deletion business_requirement_deliverable/controllers/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def portal_my_brd_list(self, page=1, date_begin=None, date_end=None,
[('name', 'ilike', search)]])
if search_in in ('stakeholder', 'all'):
search_domain = OR([search_domain,
[('partner_id', 'ilike', search)]])
[('business_requirement_id.partner_id',
'ilike', search)]])
if search_in in ('message', 'all'):
search_domain = OR([search_domain,
[('message_ids.body', 'ilike', search)]])
Expand Down

0 comments on commit 1762d7c

Please sign in to comment.