Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
4478 Vizualizări

hi all,

can I add a Many2one type Transient field in my Model? if yes, how I can create and use it in Model and View?

regards

Imagine profil
Abandonează
Cel mai bun răspuns

Fields cannot be transient, only models can be defined as transient.

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

You cannot define a field with its type as Transient in Odoo.

Only models can be defined as Transient.

Thanks

Imagine profil
Abandonează
Cel mai bun răspuns

That's true : only models can be transient, not fields

But what you are searching for may be adding the option `store=False` to your field definition

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
apr. 21
2033
1
apr. 21
2687
1
feb. 24
1742
2
sept. 23
5993
0
ian. 22
2443