Odoo Help

0

basic use of name_get

By
Surendar
on 6/5/13, 5:31 AM 1,546 views

can anyone suggest me what is the use of name_get.. pls provide an example

2

Borni DHIFI

--Borni DHIFI--
5152
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 6/5/13, 6:32 AM

Hi,

name_get(cr, uid, ids,context=None)

Returns tuples with the text representation of requested objects for to-many relationships

# Ideas should be shown with invention date
def name_get(self,cr,uid,ids):
 res = []
for r in self.read(cr,uid,ids['name','create_date'])
 res.append((r['id'], '%s (%s)' (r['name'],year))
return res

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 6/5/13, 5:31 AM
Seen: 1546 times
Last updated: 3/16/15, 8:10 AM