4

I have two fields product_qty and product_uom, and I need to show a label for product_qty and the two fields on the same line.

I found an answer to the same question on Odoo forum but it did not exactly what I want.

<group>
    <label for="product_qty"/>
    <div class="address_format">
        <field name="product_qty"/>
        <field name="product_uom"/>
    </div>
</group>

Is it possible to get them inlined on the same line?

forvas
  • 9,801
  • 7
  • 62
  • 158
Kenly
  • 24,317
  • 7
  • 44
  • 60

1 Answers1

9

Try this:

<group>
    <label for="product_qty"/>
    <div>
        <field name="product_qty" class="oe_inline"/>
        <field name="product_uom" class="oe_inline"/>
    </div>
</group>
forvas
  • 9,801
  • 7
  • 62
  • 158