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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
<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>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up