I would like to add a button at the bottom of the Expense Form View, as we have added some custom fields to this View and Users are having to scroll back up to the top to find the Submit button when using smaller screen sizes.
What is the best way to do this so that the button is not visible when using the Form View on a large device like a laptop or desktop?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
Odoo leverages Bootstrap, so you can define a section at the bottom of your Form View that is only visible on smaller screen sizes.
This is possible by leveraging the Grid feature - see https://getbootstrap.com/docs/5.1/layout/grid/ for more information.
There are six default tiers for device sizes:
- Extra small (xs)
- Small (sm)
- Medium (md)
- Large (lg)
- Extra large (xl)
- Extra extra large (xxl)
Adding the following XML to an inherited View will show your button on Extra Small, Small and Medium screens and hide it from Large, Extra Large and Extra extra large screens:
Result on Desktop (button not visible):
Result on Mobile (button visible):
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
เม.ย. 24
|
1471 | ||
|
2
พ.ค. 23
|
5892 | ||
|
5
ก.ค. 25
|
7703 | ||
|
1
ม.ค. 25
|
1350 | ||
|
2
พ.ย. 23
|
2823 |