Skip to content
Extraits de code Groupes Projets
Valider 95cce7d3 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[hack] fix context error on expiry wizard

parent 8ad27573
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
from . import models from . import models
from . import report 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