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
This commit is contained in:
Cédric Krier committed 2020-12-04 18:39:12 +01:00
1 parent af63a06eff
commit 4db233a90d
1 file changed
+1
+1
View File
@@ -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, {}