Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
5971 Ansichten

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.

Avatar
Verwerfen
Beste Antwort

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}"/>

Avatar
Verwerfen
Beste Antwort

Hi

Use xpath to hide this one .

Avatar
Verwerfen
Autor Beste Antwort

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

Avatar
Verwerfen