Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1858 Vistas

Hello Community,

I am currently working on customizing a module in Odoo using the Odoo Studio. I have come across the "Can Be Sold" field, which I believe is a standard feature in many product-related modules. I'd like to add an additional checkbox right next to this field for some custom functionality that I am implementing.

Here's what I am aiming to achieve:

  1. Position a new checkbox immediately next to the "Can Be Sold" checkbox.
  2. This new checkbox should have its own label and tooltip.

I would appreciate it if someone could guide me on how to achieve this using Odoo Studio. I am relatively new to Odoo customization, so a step-by-step guide would be immensely helpful. Also, if there are any best practices or potential pitfalls to be aware of, please let me know.

Thank you in advance for your assistance!

Avatar
Descartar
Mejor respuesta

Hi,

You can't add a checkbox in that position directly using the studio, but there is a walkaround to achieve this.
Create the field anywhere using studio and save it.


After that enable debug mode and go to Edit view: Form option. Go to inherited views and select the view created using studio.


Now click on that view and change the architecture as follows.


span[1] indicates the first checkbox.
Save it after changing and you will have the checkbox next to Can be sold.


Hope it helps

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
jul 24
1160
0
jul 24
710
2
jun 23
10887
1
sept 24
923
0
jul 24
850