If i wanted to increase the size and color of the icon used for saving manually, would I need to extend from the web.FormStatusIndicator template or could it be done by changing its style with CSS? Do you somehow inherit from the SCSS file or how would you go about doing that?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
yes using css you can chanage you have to use this class in your css file
.o_form_button_save{
//add code here
}
or if you want to replace that clouse button you have to inherit templete file and add your icon
Thank you!
can you make a tutorial for doing that? I am beginner
Hi Alec:
This week I just practised changing the buttons in the control panel. Here are my suggestions:
- if you just want to change the style, css/scss will work with more efficient performance . Create a new css/scss file, use the class name on the button, and define your size、color、border、backgroud etc.
- if you want to add or change some element or other attributes(not style attrs), you might need to overwrite the template;
- if you want to change the interaction behavior of the button, you need to find the action method which bound on, and overwrite it in js or python file
Great, thanks!
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
มิ.ย. 24
|
1097 | ||
|
0
ก.ค. 24
|
464 | ||
|
4
พ.ค. 25
|
1034 | ||
|
2
พ.ค. 25
|
4074 | ||
|
1
มี.ค. 25
|
506 |