Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1900 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvc 24
1196
0
čvc 24
719
2
čvn 23
10936
1
zář 24
959
0
čvc 24
863