Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1255 Vizualizări

Here, I wanna try change the text for hr.leave (Time Off) in custom modul (inherit view):

    record id="inherit_hr_leave_view_form" model="ir.ui.view"
        field name="name">hr.leave.view.form.inherit
        field name="model">hr.leave
        field name="inherit_id" ref="hr_holidays.hr_leave_allocation_view_form_manager"/>
        field name="arch" type="xml">
            xpath expr="//field[@name='number_of_days']" position="attributes">
                attribute name="string">Test
            /xpath>
        /field>
    /record>

also I already had model custom where's for inherit hr.leave,

but unfortunately it doesn't work when I upgrade the custom modul, the text won't changed.

Imagine profil
Abandonează
Cel mai bun răspuns

Hi, Please ensure that the attribute you want to change is correct. The field number_of_days is invisible in the form view.

The string you see is probably from the label. So you should try changing that instead of adding attributes to the field.

Hope it helps

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mai 23
4825
1
mai 24
1955
1
dec. 23
2316
0
mai 24
1228
1
iul. 25
1990