i have to add a scroll bar in one2many table. How to achieve this in odoo?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
Hi,
To set the scrollbar for an one2Many field you just have to add width for the field, this can be achieved by adding a class on the field and styling the class in a CSS file, to attach a CSS file in odoo 14 the file should be mentioned in the assets XML file. The format for it is :
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="assets_backend" inherit_id="web.assets_
<xpath expr="." position="inside">
<link rel="stylesheet" href="/your_modulename/static/
</xpath>
</template>
</odoo>
in the CSS file:
.your_class{ width: your_value px; }
to set the scrollbar on height, set these attributes in CSS:
.your_class{ height: your_value px;
overflow: auto; }
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
1
Şub 24
|
1292 | ||
|
1
Tem 25
|
2432 | ||
|
2
Tem 25
|
7898 | ||
|
2
Tem 25
|
4304 | ||
|
2
Tem 25
|
4041 |