Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
11619 Näkymät

Hello everyone,

I am using Odoo 12 and need to remove the "external connection/link" widget from the form view for a many2one field.

Please refer to the below image:


I have used on my xml:

<field name="my_field" options="{'no_create_edit': True}"/>

This code worked for the "Create..." option on the list, but did not removed the widget in front of the field.

How can I do that?

Thank you in advance

Regards

Paulo

Avatar
Hylkää
Paras vastaus

options='{"no_open": True}' is used to prevent you from opening the record.


Syntax:

<field name="your_m2o_field" options="{'no_open': True}"
Avatar
Hylkää
Tekijä

Thank you @Ray,

It works exactly as expected.

Best regards

Tekijä

@Ray,

This is exactly the kind of "answer" we all newbies expect to read from the pro's.

A simple answer and a valuable syntax to help us better understand the code/solution provided.

Thank you once again! +100 for you!

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
huhtik. 19
9945
1
syysk. 21
5618
3
tammik. 20
6794
5
syysk. 19
6259
0
maalisk. 20
3377