Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1886 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 24
1192
0
thg 7 24
716
2
thg 6 23
10914
1
thg 9 24
935
0
thg 7 24
859