Skip to content

Commit 40e6cad

Browse files
committed
[FIX] purchase_duplicate_check: functional is updated after confirmation_wizard is updated
1 parent d3459ca commit 40e6cad

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

purchase_duplicate_check/models/purchase_order.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,10 @@ def _is_activity_enabled(self) -> bool:
3636

3737
def _check_pending_order(self):
3838
"""Check for pending orders and trigger confirmation wizard if needed."""
39-
if self._is_activity_enabled() and not self._context.get(
40-
"skip_rfq_confirmation"
41-
):
42-
return (
43-
self.env["confirmation.wizard"]
44-
.with_context(skip_rfq_confirmation=True)
45-
.confirm_pending_order(self)
46-
)
39+
if self._is_activity_enabled():
40+
action = self.env["confirmation.wizard"].confirm_pending_order(self)
41+
if action:
42+
return action
4743

4844
def button_confirm(self):
4945
"""

purchase_duplicate_check/wizard/confirmation_wizard.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ def action_confirm(self):
5353
"purchase_duplicate_check.repeating_orders_activity_type_id", False
5454
)
5555
)
56-
if self._context.get("skip_rfq_confirmation") and action_type_id:
56+
if action_type_id:
5757
self._create_po_activity(int(action_type_id))
5858
return super().action_confirm()

0 commit comments

Comments
 (0)