تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4387 أدوات العرض

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
يونيو 25
1473
3
يوليو 25
3172
1
مايو 25
1309
1
مايو 25
1571
4
مايو 25
2708