콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2027 화면

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!

아바타
취소
베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
0
7월 24
1265
0
7월 24
791
2
6월 23
11116
1
9월 24
1063
0
7월 24
952