Skip to content
Snippets Groups Projects
Commit 95cce7d3 authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[hack] fix context error on expiry wizard

parent 8ad27573
Branches
No related tags found
No related merge requests found
......@@ -3,3 +3,4 @@
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