跳至內容
選單
此問題已被標幟
1 回覆
4411 瀏覽次數

I have the following view code in a module:

        










What i am trying to achieve is:

https://siasky.net/FAAg8X0PLWrskWfW6pNTtWGCJtxJ2fpLL98Vj4YzfFYvXQ

Have the two columns in the tree/list : ok

Have the auto assign user field editable (many2one , drop down): ok

I do not want to allow the user to add new lines or change the names of those stages.

Also i do not want the 'x' delete buttons at the end.


So, i want the user to ONLY be able to change/unset the user for existing lines.


Any idea how i can achieve this ?      


頭像
捨棄
作者 最佳答案

OMG ... i have to escape html myself ?

<field name="arch" type="xml">

<xpath expr="//page[1]" position="before">

<page name="project_stages" string="Stages">

<field name="type_ids">

<tree editable="bottom" delete="false" create="false">

<field name="name" edit="false" create="false"/>

<field name="auto_assign_user_id" widget="many2onebutton" edit="true"/>

</tree>

</field>

</page>

</xpath>

</field>

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 25
1524
3
7月 25
3207
1
5月 25
1353
1
5月 25
1602
4
5月 25
2756