From 4db233a90d06670c06dd5eba2f561b369f96f6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 4 Dec 2020 18:39:12 +0100 Subject: [PATCH] Keep the original context when opening Product Quantities by Warehouse The PYSON context only works when it is evaluated from keyword action. When it is evaluated as the result of a wizard, there is no more any active* keys in the context. So we must not change the context as we already have the right inherited one from the view. issue9884 review324561002 --- product.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product.py b/product.py index 541c1525f7..bc22b8d580 100644 --- a/product.py +++ b/product.py @@ -601,6 +601,7 @@ class OpenProductQuantitiesByWarehouse(Wizard): def do_open_(self, action): domain = [('date', '>=', self.record.date)] + action['pyson_context'] = '{}' action['pyson_search_value'] = PYSONEncoder().encode(domain) action['name'] += ' (' + self.record.rec_name + ')' return action, {}