Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
1756 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Feb. 16
6637
1
Nov. 22
2783
5
Jan. 24
13676
1
Juli 24
1499
0
Juli 24
1229