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

Hello,

I'm looking to add many2one field called  "hr.institute" but I couln't find any specific place to add this, So can anyone help me, Thankx.

Avatar
Verwerfen
Beste Antwort

Madura,

You should first design a model(class) with its _columns. Only then, The class/model will be used as a many2one.

In your case, you should make sure to have hr.institude defined first. Later on, your new class can have many2one in this fashion:

'institute_id': fields.many2one('hr.institute', 'Institute')

Thanks.

Avatar
Verwerfen

Hello, Thank You for thew help. but I couldn't find the place where I need to add this call, So could You please help me to achieve this? Thank You.

You should add in your module!

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Apr. 24
7113
2
März 24
1732
2
Aug. 23
2595
1
Juli 19
19805
1
Nov. 16
8499