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

In Delivery Order, Additional Info tab we can see a column that refers to Sales Order. If we click on that link it will open up the respective Sales Order. But I need to remove this url link, is it possible.

I can simply just hide it, but Warehouse needs to see and sometimes to enter SO number manually, but Warehouse are not supposed to see the price of product. So the only way i can think of is to remove the url link.

الصورة الرمزية
إهمال
أفضل إجابة

Hi Hans..

You can add attribute 'options' in your .xml code to remove url link. Like this :

<field name="type" groups="base.group_extended" options="{'no_open':True,'no_create_edit':True}"/>

الصورة الرمزية
إهمال
أفضل إجابة

Hi

Use xpath to hide this one .

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

could please be more detail? sorry i really have no idea how to apply this xpath

here's the form view i m talking:

....

<page string="Additional info" groups="base.group_extended,base.group_multi_company">

<field name="auto_picking" groups="base.group_extended"/>

<field name="date_done" groups="base.group_extended"/>

<field name="move_type" groups="base.group_extended"/>

<field name="type" groups="base.group_extended"/>  <=== url link to remove

<field name="company_id" groups="base.group_multi_company" widget="selection"/>

</page>

.....

I need to remove the link from this field name = type

OK tried to add like the following:
<field name="type" groups="mrp.group_mrp_manager" options="{'no_open':True,'no_create_edit':True}"/>

then this error raise:

File "<string>", line 1

options="{'no_open':True,'no_create_edit':True}"

^

SyntaxError: invalid syntax

الصورة الرمزية
إهمال