Skip to content
Snippets Groups Projects
Commit e777926b authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

Revert "[hack] fix context error on expiry wizard"

This reverts commit 95cce7d3.
parent 95cce7d3
Branches
No related tags found
No related merge requests found
......@@ -3,4 +3,3 @@
from . import models
from . import report
from . import wizard
# Copyright 2021 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import confirm_expiry
# Copyright 2021 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
class ConfirmExpiry(models.TransientModel):
_inherit = 'expiry.picking.confirmation'
def process(self):
"""
Inherit function to pop default_lot_ids in context
"""
ctx = dict(self._context, skip_expired=True)
ctx.pop('default_lot_ids')
self = self.with_context(ctx)
return super(ConfirmExpiry, self).process()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment