跳至內容
選單
此問題已被標幟
4068 瀏覽次數

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

頭像
捨棄

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

相關帖文 回覆 瀏覽次數 活動
1
3月 15
7890
1
7月 23
2369
2
1月 21
5965
4
11月 20
6580
1
3月 19
3303