Field with size 8 digits is very wide on form view. How to change / decrease field width on a form view?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
In XML view, add style="width:40%%"
<field name="field1" style="width:40%%" />
Both works well if I need to extend field width:
<field name="field1" style="width:40%%" />
<field name="field1" width="40" />
But how to override minimum width?
This doesn't works, the filed doesn't appear shorter:
<field name="field1" style="width:20%%" />
<field name="field1" width="20" />
<field name="qty01" nolabel="1" style="min-width: 20px;"/>
The field is float.
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
3
พ.ค. 25
|
1590 | ||
|
1
เม.ย. 25
|
1202 | ||
V17 Tree, Form view
แก้ไขแล้ว
|
|
1
มี.ค. 25
|
1223 | |
one2one relational field
แก้ไขแล้ว
|
|
3
ก.ย. 24
|
14041 | |
|
2
ก.พ. 24
|
2387 |
It does not work for me.
Here is my exemple :
I would like to put the 3 fields on the same line.
My xml is (with 3 syntaxes for the width clause : with %%, px, and nothing) :
<field name="partner_id" position="after">
<label for="contact_name"/>
<div>
<field name="title" placeholder="Genre/Titre" class="oe_inline" options="{"no_open": True}" width="12"/>
<field name="contact_firstname_id" string="Prénom" placeholder="Prénom par complétion"
options="{'create_name_field': 'contact_firstname'}"
class="oe_edit_only oe_inline" on_change="1" width="20%%"/>
<field name="contact_lastname" placeholder="Nom" class="oe_inline" width="100px"/>
</div>
</field>
I tried also the syntax `style="width:...."` and nothing changes
can you help me ?