Fields.function type='many2one'

Asked by mm alam

Hi Every one,

What is the purpose of fields.function (func1, ...............'type=many2one', relation='some.relation')

Since, I was not able to browse the any thing using the browse button displayed in the fields.function. But I remember, some times back, I was able to do so. Am I missing some thing. If some body can clarify the purpose of this.

An answer can be that we can put records from the object, mentioned in the 'some.relation' programatically, however this does not satisfy me, as there is no reference passed to func1 for the object "some.relation" and I still have to rely on one of the many2one() fields defined in my object.

Please clarify!

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ravindra Mekhiya(OpenERP) (rme-openerp) said :
#1

Hello mm alam,

   The fields.function (type=many2one) is a readonly field. It will not allow to search for a record at all. For entering the value in this field you'll have to use the function. If you want to search records you'll have to use fields.many2one. You can still browse the record which is there in the functional field. It will display the form view of the record.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask mm alam for more information if necessary.

To post a message you must log in.