Hai Friends ,
First I thank everyone who give good guideline for newbie in OpenERP . I have question regards predefined fields - _rec_name in OpenERP .
- Its not clear for me , _rec_name predefined fields in OpenERP . Friends can you please explain with sample module .It more useful for clear understanding .
Thanks & Regards OMPRAKASH.A
_name is used to define object like
account.invoice, sale.order, purchase.order, res.users.
When you have name field in your columns, you don't need to define field in
_rec_name. OpenERP takes name field by default.
You have seen name in any form when you select
many2one field. For example in Sale Order when you select Customer, you can see Customer's Name in that
many2one field. Now if you want to show Customer's Phone Number in
many2one field, you have to define
phone field in
_rec_name like this:
_rec_name = 'phone'
If your columns don't have any name field then you have to define any field in
There are other reasons which Prakash described in his answer.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/17/13, 9:07 AM|
|Seen: 8910 times|
|Last updated: 7/10/15, 12:10 PM|