跳至内容
菜单
此问题已终结
3 回复
5973 查看

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

形象
丢弃