[FIX] stock_picking_batch: wrong widget

The widget many2onebutton doesn't exist anymore. As the web client
fallbacked on the default many2one widget. The behavior was the intended
one but with a warning in the logs. This commit uses the proper widget
to avoid the unintentional warning

closes odoo/odoo#76882

X-original-commit: 4547cbff9f2850fcfcd536a574fd5c29c44ecdb5
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
This commit is contained in:
William Henrotin
2021-09-21 08:08:51 +00:00
parent 52e9668e99
commit 0419f27f38
@@ -272,7 +272,7 @@
('picking_type_id', '=', picking_type_id),
('picking_type_id', '=', False),
]"
widget="many2onebutton"
widget="many2one"
context="{'default_picking_type_id': picking_type_id}"/>
</xpath>
</field>