Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4407 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
juin 25
1518
3
juil. 25
3205
1
mai 25
1351
1
mai 25
1600
4
mai 25
2753