Skip to content

Commit dc502eb

Browse files
committed
[FIX] ensure active_model and active_ids are setted when opening cancel wizard for Bids
This ensure that in Bid list view "View RFQs/Bids" context values are correctly set as it defines active_model
1 parent d2e697b commit dc502eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

purchase_rfq_bid_workflow/model/purchase_order.py

+2
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ def action_cancel(self):
186186
'action_modal_cancel_reason'))[1]
187187
ctx = self._context.copy()
188188
ctx['action'] = 'action_cancel_ok'
189+
ctx['active_model'] = 'purchase.order'
190+
ctx['active_ids'] = self.ids
189191
# TODO: filter based on po type
190192
return {
191193
'type': 'ir.actions.act_window',

0 commit comments

Comments
 (0)