How I can change the size and position of the fields in a form? Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
<field name="your_field" style="width:16%" />
Hi Toni,
move fields : You can create an inherited view that removes former fields and then add modified fields to the new position
resize fields : You may use width attribute of the fields to set size.
e.g. : <record model="ir.ui.view" id="some_inherited_view"> <field name="name">some.inherited.view</field> <field name="type">form</field> <field name="model">some.model.with.one2many</field> <field name="inherit_id" ref="core_module.some_view"/> <field name="arch" type="xml"> <data> <xpath expr="//field[@name='myfield']" position="replace"/>
<xpath
expr="//field[@name='fieldbefore']"
position="after">
<field name="myfield" width="200"/>
</xpath>
</data>
</field>
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden