Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4078 Visualizzazioni

I have created a new row in child "project.task"model tree view below but I want parent model "project.project" to show a filed value in the new row.

<t t-extend="ListView">

        <t t-jquery="thead" t-operation="before">

            <t t-if="options.action.res_model=='project.task'">

                <button type="button" class="btn btn-sm btn-primary o_list_button_add" accesskey="C">

                    <t t-esc="options.action.res_model"/>

                </button>

            </t>

        </t>

    </t>

Please help

Avatar
Abbandona

You can use something like, task.project_id.field_value...

Post correlati Risposte Visualizzazioni Attività
1
mar 15
7892
1
lug 23
2389
2
gen 21
5983
4
nov 20
6594
1
mar 19
3315