Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4409 Переглядів

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>

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
черв. 25
1519
3
лип. 25
3205
1
трав. 25
1351
1
трав. 25
1600
4
трав. 25
2753