Skip to Content
Menu
This question has been flagged
1 Reply
2841 Views

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 ?      


Avatar
Discard
Author Best Answer

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>

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
3124
1
Dec 24
351
4
Nov 24
1364
1
Sep 24
1134
1
Sep 24
1202