diff options
| author | jerome hanke (jhk) <jhk@odoo.com> | 2020-06-14 20:37:25 +0000 |
|---|---|---|
| committer | jerome hanke (jhk) <jhk@odoo.com> | 2020-06-16 06:27:40 +0000 |
| commit | 3aaa0088cf96a9ff6577c102a84b3ecbfb312b08 (patch) | |
| tree | 4615bafee0214a51b5a8e5649350d7a9d06a7e9d /addons/crm/views | |
| parent | add22ec8ef11f5ce6f8260c5fd791ca99a38ff43 (diff) | |
[FIX] crm: opportunity meetings filters are set based on id
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/odoo#53013
X-original-commit: b9abc757da3034209b083c4ba862edd3865f7637
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: mightyjol <jhk-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/crm/views')
| -rw-r--r-- | addons/crm/views/crm_lead_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index a2666eb3cff..e5c97189f84 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -30,7 +30,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"/> |
