İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1875 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Tem 24
1165
0
Tem 24
712
2
Haz 23
10898
1
Eyl 24
927
0
Tem 24
856