From 9c3a10c80c4b0f87bcbf0e56c147cca6450cb97a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Mombereau?= <clement.mombereau@akretion.com>
Date: Fri, 15 Nov 2024 13:46:32 -0300
Subject: [PATCH] [FIX] location barcode for compatibility with
 barcodes_generator_location

---
 shopfloor/views/stock_location.xml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/shopfloor/views/stock_location.xml b/shopfloor/views/stock_location.xml
index 324d896479..6b61a9acd9 100644
--- a/shopfloor/views/stock_location.xml
+++ b/shopfloor/views/stock_location.xml
@@ -6,9 +6,10 @@
         <field name="inherit_id" ref="stock.view_location_form" />
         <field name="arch" type="xml">
             <!-- show barcode because it's handy -->
-            <xpath expr="//field[@name='location_id']/.." position="after">
-                <label for="barcode" />
-                <field name="barcode" />
+            <xpath expr="//group[@name='additional_info']" position="after">
+                <group name="barcode" string="Barcode">
+                    <field name="barcode" />
+                </group>
             </xpath>
             <xpath expr="//group[@name='additional_info']/.." position="inside">
                 <group string="Shopfloor">