From 667ed2bd06ff074722d766ba13d8dbd83db814fd Mon Sep 17 00:00:00 2001 From: hparfr Date: Thu, 4 Feb 2021 16:33:08 +0100 Subject: [PATCH] stock_putaway_rule: adapt to new odoo api See https://github.com/odoo/odoo/commit/aae1d578296875a641d1142c0f73279fc134a151 --- stock_putaway_hook/models/stock_putaway_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_putaway_hook/models/stock_putaway_rule.py b/stock_putaway_hook/models/stock_putaway_rule.py index 617a8318865..997c15ede6c 100644 --- a/stock_putaway_hook/models/stock_putaway_rule.py +++ b/stock_putaway_hook/models/stock_putaway_rule.py @@ -88,7 +88,7 @@ def _fields_view_get_add_exclusive_selection_attrs(self, doc): field.set("attrs", str(attrs)) modifiers = {} transfer_node_to_modifiers( - field, modifiers, self.env.context, in_tree_view=True + field, modifiers, context=self.env.context ) transfer_modifiers_to_node(modifiers, field)