コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
5979 ビュー

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

アバター
破棄