[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>
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user