+
diff --git a/stock_picking_report_product_sticker/tests/common.py b/stock_picking_report_product_sticker/tests/common.py
index 9a49d46..d11ea9e 100644
--- a/stock_picking_report_product_sticker/tests/common.py
+++ b/stock_picking_report_product_sticker/tests/common.py
@@ -5,6 +5,8 @@ from odoo.tests import tagged
from odoo.addons.product_sticker.tests.common import ProductStickerCommon
+from ..models.stock_picking_type import REPORT_STICKER_POSITIONS
+
@tagged("post_install", "-at_install")
class ProductStickerStockCommon(ProductStickerCommon):
@@ -12,7 +14,7 @@ class ProductStickerStockCommon(ProductStickerCommon):
def setUpClass(cls):
super().setUpClass()
cls.picking_type_out = cls.env.ref("stock.picking_type_out")
- cls.picking_type_out.show_product_stickers = True
+ cls.picking_type_out.show_product_stickers = REPORT_STICKER_POSITIONS[0][0]
cls.stock_location = cls.env.ref("stock.stock_location_stock")
cls.supplier_location = cls.env.ref("stock.stock_location_suppliers")
diff --git a/stock_picking_report_product_sticker/tests/test_stock_picking.py b/stock_picking_report_product_sticker/tests/test_stock_picking.py
index b57293d..fad7c95 100644
--- a/stock_picking_report_product_sticker/tests/test_stock_picking.py
+++ b/stock_picking_report_product_sticker/tests/test_stock_picking.py
@@ -11,8 +11,10 @@ class TestStickersOnPickings(ProductStickerStockCommon):
picking = self._create_picking(
self.picking_type_out, [target_product, target_product]
)
- self.assertTrue(
- picking.show_product_stickers, "Picking type should show stickers"
+ self.assertEqual(
+ picking.show_product_stickers,
+ self.picking_type_out.show_product_stickers,
+ "Picking type should show stickers",
)
self.assertEqual(
picking.sticker_ids,
diff --git a/stock_picking_report_product_sticker/views/stock_picking_type_views.xml b/stock_picking_report_product_sticker/views/stock_picking_type_views.xml
index 4ecd02c..44b2542 100644
--- a/stock_picking_report_product_sticker/views/stock_picking_type_views.xml
+++ b/stock_picking_report_product_sticker/views/stock_picking_type_views.xml
@@ -8,7 +8,7 @@
-
+
diff --git a/stock_picking_report_product_sticker/views/stock_picking_views.xml b/stock_picking_report_product_sticker/views/stock_picking_views.xml
index 56c6898..efddce8 100644
--- a/stock_picking_report_product_sticker/views/stock_picking_views.xml
+++ b/stock_picking_report_product_sticker/views/stock_picking_views.xml
@@ -8,7 +8,7 @@
-
+