跳至内容
菜单
此问题已终结
2 回复
1754 查看

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!


形象
丢弃
相关帖文 回复 查看 活动
2
2月 16
6637
1
11月 22
2783
5
1月 24
13675
1
7月 24
1498
0
7月 24
1229