Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1638 Zobrazení

Hi all

i want to ad a check box to a quality worksheet. The field text is splitting between 2 rows and id like it to be on one line.

example

"Terminal markers

attached"

instead id like 

"Terminal markers attached" > Checkbox 

ive tried width style and colspan but i can seem to find the right combination.

odoo 17

Thanks

Avatar
Zrušit
Nejlepší odpověď

Hi,


To add a checkbox to a quality worksheet in Odoo 17 and ensure that the field text stays on one line, you can use simply give a string attribute inside the label tag.


For example, Try to use the following code:


<odoo>
<record id="view_quality_worksheet_form" model="ir.ui.view">
<field name="name">quality.worksheet.form</field>
<field name="model">quality.worksheet</field>
        <field name="arch" type="xml">
            <form>
                <div>
                    <label for="checkbox" string="Terminal markers attached"/>
                    <field name="checkbox" id="checkbox"/>
                </div>
            </form>
        </field>
    </record>
</odoo>


Hope it helps.


Avatar
Zrušit
Nejlepší odpověď

Hey Steven,

This would be the simplest way to get the two fields to appear on "one line". I added the columns block to the worksheet and added the text field in the left column and the checkbox in the right column. 


Testing the worksheet on a quality check, this is how it is displayed. I hope this helps!


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
úno 16
6509
1
lis 22
2650
5
led 24
13461
1
čvc 24
1350
0
čvc 24
1096