Skip to content

Commit

Permalink
[FIX] crm: opportunity meetings filters are set based on id
Browse files Browse the repository at this point in the history
Steps to reproduce:
- install crm
- go to crm > configuration > settings > activate leads
- go to a contact > click the "opportunity" smart button >
create an opportunity > select the newly created opportunity > click
the "meetings" smart button

Previous behavior:
meetings are filtered with 'search_default_opportunity_id' set to active_id.
active_id is referring to the partner_id in this case. this leads to
a cache miss error.

Current behavior:
meetings are filtered by the right opportunity (current id).

opw-2272325

closes odoo#52947

Signed-off-by: Nicolas Lempereur (nle) <[email protected]>
  • Loading branch information
jhk-odoo committed Jun 14, 2020
1 parent c5cd732 commit b9abc75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/crm/views/crm_lead_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<div class="oe_button_box" name="button_box">
<button name="action_schedule_meeting" type="object"
class="oe_stat_button" icon="fa-calendar"
context="{'partner_id': partner_id, 'search_default_opportunity_id': active_id}"
context="{'partner_id': partner_id, 'search_default_opportunity_id': id}"
attrs="{'invisible': [('type', '=', 'lead')]}">
<div class="o_stat_info">
<field name="meeting_count" class="o_stat_value"/>
Expand Down

0 comments on commit b9abc75

Please sign in to comment.