Skip to content
Extraits de code Groupes Projets
Valider e777926b rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

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

This reverts commit 95cce7d3.
parent 95cce7d3
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter