File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,10 @@ def _is_activity_enabled(self) -> bool:
36
36
37
37
def _check_pending_order (self ):
38
38
"""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
47
43
48
44
def button_confirm (self ):
49
45
"""
Original file line number Diff line number Diff line change @@ -53,6 +53,6 @@ def action_confirm(self):
53
53
"purchase_duplicate_check.repeating_orders_activity_type_id" , False
54
54
)
55
55
)
56
- if self . _context . get ( "skip_rfq_confirmation" ) and action_type_id :
56
+ if action_type_id :
57
57
self ._create_po_activity (int (action_type_id ))
58
58
return super ().action_confirm ()
You can’t perform that action at this time.
0 commit comments