Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1682 Представления

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

Аватар
Отменить
Лучший ответ

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.


Аватар
Отменить
Лучший ответ

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!


Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
февр. 16
6559
1
нояб. 22
2690
5
янв. 24
13513
1
июл. 24
1396
0
июл. 24
1121