Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4042 Zobrazení

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
Zrušit

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

Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
7843
1
čvc 23
2320
2
led 21
5905
4
lis 20
6526
1
bře 19
3267