[FIX] stock_picking_report_product_sticker: Show stickers in different positions

Show stickers in different positions and reduce the image size on the report.
This commit is contained in:
Eduardo De Miguel
2023-03-31 12:50:47 +02:00
parent 32b5a27fe3
commit d8889fc38b
13 changed files with 176 additions and 54 deletions

View File

@@ -2,10 +2,13 @@
Stock Picking Report - Product Sticker
======================================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0f26f8c5829d171015747e7f0ef2ef426fe9627c9bea856a5060adddd5753db4
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
@@ -19,11 +22,11 @@ Stock Picking Report - Product Sticker
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-15-0/stock-logistics-reporting-15-0-stock_picking_report_product_sticker
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/151/15.0
:alt: Try me on Runbot
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=15.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|
This module allows you to display the Product Stickers in the Delivery Slip reports.
@@ -44,8 +47,8 @@ Usage
To use this module, you need to:
#. You must go to the Picking Type that you want to show the Product Stickers
and activate the option to *Show Stickers on Pickings of this type*.
#. You can also enable or disable showing Stickers on each Picking by hand if you wish.
and choose the desired position of the stickers on the field *Show Product Stickers*.
#. You can also change the position or disable it on each Picking by hand if you wish.
Regardless if your Picking Type has Show Stickers enabled or not.
Bug Tracker
@@ -53,7 +56,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-reporting/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_picking_report_product_sticker%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
@@ -84,6 +87,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px
:target: https://github.com/Shide
:alt: Shide
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-Shide|
This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/15.0/stock_picking_report_product_sticker>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -3,7 +3,7 @@
{
"name": "Stock Picking Report - Product Sticker",
"version": "15.0.1.0.1",
"version": "15.0.1.0.2",
"author": "Moduon, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/stock-logistics-reporting",
@@ -18,6 +18,6 @@
"report/report_deliveryslip.xml",
"data/menus.xml",
],
"maintainer": ["Shide"],
"maintainers": ["Shide"],
"installable": True,
}

View File

@@ -0,0 +1,70 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_report_product_sticker
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-31 10:48+0000\n"
"PO-Revision-Date: 2023-10-28 16:00+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields.selection,name:stock_picking_report_product_sticker.selection__stock_picking__show_product_stickers__bottom_left
#: model:ir.model.fields.selection,name:stock_picking_report_product_sticker.selection__stock_picking_type__show_product_stickers__bottom_left
msgid "Bottom (left)"
msgstr "Abajo (izquierda)"
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields,help:stock_picking_report_product_sticker.field_stock_picking_type__show_product_stickers
msgid "Display Product Stickers on chosen position inside the report."
msgstr ""
"Mostrar Pegatinas de Producto en la posición elegida dentro del informe."
#. module: stock_picking_report_product_sticker
#: model:ir.model,name:stock_picking_report_product_sticker.model_stock_picking_type
msgid "Picking Type"
msgstr "Tipo de albarán"
#. module: stock_picking_report_product_sticker
#: model:ir.ui.menu,name:stock_picking_report_product_sticker.menu_stock_picking_report_product_sticker
msgid "Product Stickers"
msgstr "Pegatinas de producto"
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields,field_description:stock_picking_report_product_sticker.field_stock_picking__show_product_stickers
#: model:ir.model.fields,field_description:stock_picking_report_product_sticker.field_stock_picking_type__show_product_stickers
msgid "Show Product Stickers"
msgstr "Mostrar pegatinas de productos"
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields,help:stock_picking_report_product_sticker.field_stock_picking__show_product_stickers
msgid "Show Product Stickers on pickings of this type."
msgstr "Mostrar Pegatinas de productos en los albaranes de este tipo."
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields,field_description:stock_picking_report_product_sticker.field_stock_picking__sticker_ids
msgid "Stickers"
msgstr "Pegatinas"
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields.selection,name:stock_picking_report_product_sticker.selection__stock_picking__show_product_stickers__top_right
#: model:ir.model.fields.selection,name:stock_picking_report_product_sticker.selection__stock_picking_type__show_product_stickers__top_right
msgid "Top (right)"
msgstr "Arriba (derecha)"
#. module: stock_picking_report_product_sticker
#: model:ir.model,name:stock_picking_report_product_sticker.model_stock_picking
msgid "Transfer"
msgstr "Albarán"
#~ msgid "Position of the stickers inside the report."
#~ msgstr "Posición de las pegatinas de producto dentro del informe."

View File

@@ -13,6 +13,17 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields.selection,name:stock_picking_report_product_sticker.selection__stock_picking__show_product_stickers__bottom_left
#: model:ir.model.fields.selection,name:stock_picking_report_product_sticker.selection__stock_picking_type__show_product_stickers__bottom_left
msgid "Bottom (left)"
msgstr ""
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields,help:stock_picking_report_product_sticker.field_stock_picking_type__show_product_stickers
msgid "Display Product Stickers on chosen position inside the report."
msgstr ""
#. module: stock_picking_report_product_sticker
#: model:ir.model,name:stock_picking_report_product_sticker.model_stock_picking_type
msgid "Picking Type"
@@ -29,11 +40,6 @@ msgstr ""
msgid "Show Product Stickers"
msgstr ""
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields,help:stock_picking_report_product_sticker.field_stock_picking_type__show_product_stickers
msgid "Show Product Stickers on Pickings of this type."
msgstr ""
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields,help:stock_picking_report_product_sticker.field_stock_picking__show_product_stickers
msgid "Show Product Stickers on pickings of this type."
@@ -44,6 +50,12 @@ msgstr ""
msgid "Stickers"
msgstr ""
#. module: stock_picking_report_product_sticker
#: model:ir.model.fields.selection,name:stock_picking_report_product_sticker.selection__stock_picking__show_product_stickers__top_right
#: model:ir.model.fields.selection,name:stock_picking_report_product_sticker.selection__stock_picking_type__show_product_stickers__top_right
msgid "Top (right)"
msgstr ""
#. module: stock_picking_report_product_sticker
#: model:ir.model,name:stock_picking_report_product_sticker.model_stock_picking
msgid "Transfer"

View File

@@ -3,15 +3,18 @@
from odoo import api, fields, models
from .stock_picking_type import REPORT_STICKER_POSITIONS
class StockPicking(models.Model):
_inherit = "stock.picking"
show_product_stickers = fields.Boolean(
help="Show Product Stickers on pickings of this type.",
show_product_stickers = fields.Selection(
selection=REPORT_STICKER_POSITIONS,
compute="_compute_show_product_stickers",
store=True,
readonly=False,
help="Show Product Stickers on pickings of this type.",
)
sticker_ids = fields.Many2many(
comodel_name="product.sticker",
@@ -20,7 +23,7 @@ class StockPicking(models.Model):
store=False,
)
@api.depends("picking_type_id.show_product_stickers")
@api.depends("picking_type_id")
def _compute_show_product_stickers(self):
for picking in self:
picking.show_product_stickers = (

View File

@@ -3,10 +3,16 @@
from odoo import fields, models
REPORT_STICKER_POSITIONS = [
("top_right", "Top (right)"),
("bottom_left", "Bottom (left)"),
]
class StockPickingType(models.Model):
_inherit = "stock.picking.type"
show_product_stickers = fields.Boolean(
help="Show Product Stickers on Pickings of this type.",
show_product_stickers = fields.Selection(
selection=REPORT_STICKER_POSITIONS,
help="Display Product Stickers on chosen position inside the report.",
)

View File

@@ -1,6 +1,6 @@
To use this module, you need to:
#. You must go to the Picking Type that you want to show the Product Stickers
and activate the option to *Show Stickers on Pickings of this type*.
#. You can also enable or disable showing Stickers on each Picking by hand if you wish.
and choose the desired position of the stickers on the field *Show Product Stickers*.
#. You can also change the position or disable it on each Picking by hand if you wish.
Regardless if your Picking Type has Show Stickers enabled or not.

View File

@@ -8,8 +8,8 @@
>
<xpath expr="//div[hasclass('page')]" position="inside">
<div
t-if="o.show_product_stickers"
name="delivery_sticker_section"
t-if="o.show_product_stickers == 'bottom_left'"
name="delivery_sticker_section_bottom"
class="mt-5"
>
<t
@@ -17,20 +17,32 @@
/>
</div>
</xpath>
<xpath expr="//div[hasclass('page')]/h2" position="before">
<div
t-if="o.show_product_stickers == 'top_right'"
name="delivery_sticker_section_top"
class="col-12 mt-1 mb-1"
style="text-align:end;"
>
<t
t-call="stock_picking_report_product_sticker.stock_report_delivery_stickers"
/>
</div>
</xpath>
</template>
<template id="stock_report_delivery_stickers">
<t t-foreach="o.sticker_ids" t-as="sticker">
<div class="col-2 d-inline-block text-center align-top p-0 mt-3 mr-1">
<div class="col-1 d-inline-block text-center align-top p-0 mt-3 mr-1">
<img
t-att-src="image_data_uri(sticker.image_128)"
t-att-src="image_data_uri(sticker.image_64)"
t-att-alt="sticker.name"
class="m-auto d-block"
/>
<span
t-if="sticker.show_sticker_note and sticker.note"
t-esc="sticker.note"
class="text-muted"
class="text-muted small"
style="white-space: pre;"
/>
</div>

View File

@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Stock Picking Report - Product Sticker</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
@@ -366,67 +366,71 @@ ul.auto-toc {
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0f26f8c5829d171015747e7f0ef2ef426fe9627c9bea856a5060adddd5753db4
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/15.0/stock_picking_report_product_sticker"><img alt="OCA/stock-logistics-reporting" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-reporting-15-0/stock-logistics-reporting-15-0-stock_picking_report_product_sticker"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/151/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-reporting/tree/15.0/stock_picking_report_product_sticker"><img alt="OCA/stock-logistics-reporting" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-reporting-15-0/stock-logistics-reporting-15-0-stock_picking_report_product_sticker"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to display the Product Stickers in the Delivery Slip reports.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#installation" id="id1">Installation</a></li>
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li>
<li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li>
<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="installation">
<h1><a class="toc-backref" href="#id1">Installation</a></h1>
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
<p>You must install the <tt class="docutils literal">product_sticker</tt> module from
[Product Attribute](<a class="reference external" href="https://github.com/OCA/product-attribute">https://github.com/OCA/product-attribute</a>) repository.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>You must go to the Picking Type that you want to show the Product Stickers
and activate the option to <em>Show Stickers on Pickings of this type</em>.</li>
<li>You can also enable or disable showing Stickers on each Picking by hand if you wish.
and choose the desired position of the stickers on the field <em>Show Product Stickers</em>.</li>
<li>You can also change the position or disable it on each Picking by hand if you wish.
Regardless if your Picking Type has Show Stickers enabled or not.</li>
</ol>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_picking_report_product_sticker%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id4">Credits</a></h1>
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id5">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<ul class="simple">
<li>Moduon</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li>Eduardo de Miguel (<a class="reference external" href="https://www.moduon.team/">Moduon</a>)</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/Shide"><img alt="Shide" src="https://github.com/Shide.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/15.0/stock_picking_report_product_sticker">OCA/stock-logistics-reporting</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>

View File

@@ -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")

View File

@@ -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,

View File

@@ -8,7 +8,7 @@
<field name="inherit_id" ref="stock.view_picking_type_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='show_operations']" position="after">
<field name="show_product_stickers" widget="boolean_toggle" />
<field name="show_product_stickers" />
</xpath>
</field>
</record>

View File

@@ -8,7 +8,7 @@
<field name="inherit_id" ref="stock.view_picking_form" />
<field name="arch" type="xml">
<xpath expr="//group[@name='other_infos']" position="inside">
<field name="show_product_stickers" widget="boolean_toggle" />
<field name="show_product_stickers" />
</xpath>
</field>
</record>