[FIX] base: preserve context when cancelling module install
Closes #18597
This commit is contained in:
committed by
Martin Trigaux
parent
8749410b10
commit
e43d73c35a
@@ -562,7 +562,7 @@ class module(osv.osv):
|
||||
return dict(ACTION_DICT, name=_('Uninstall'))
|
||||
|
||||
def button_uninstall_cancel(self, cr, uid, ids, context=None):
|
||||
self.write(cr, uid, ids, {'state': 'installed'})
|
||||
self.write(cr, uid, ids, {'state': 'installed'}, context=context)
|
||||
return True
|
||||
|
||||
def button_immediate_upgrade(self, cr, uid, ids, context=None):
|
||||
@@ -605,7 +605,7 @@ class module(osv.osv):
|
||||
return dict(ACTION_DICT, name=_('Apply Schedule Upgrade'))
|
||||
|
||||
def button_upgrade_cancel(self, cr, uid, ids, context=None):
|
||||
self.write(cr, uid, ids, {'state': 'installed'})
|
||||
self.write(cr, uid, ids, {'state': 'installed'}, context=context)
|
||||
return True
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user