on sale module sale.py
you will find function field examples.
OpenERP=Easier, Adaptable, Affordable, Modular
m2f
--
http://www.openobject.com/forum/viewtopic.php?p=48869#48869
m2f
_
I have followed you but the fields is also readonly status, If you have example
about function field, please share to me.
m2f
--
http://www.openobject.com/forum/viewtopic.php?p=48841#48841
m2f
_
for char type function field return data should be like.
{id:value,id2:value2}
{1:'abc',2,'xyz'}
You have to manually set readonly=False in -columns to make it editable.
OpenERP=Easier, Adaptable, Affordable, Modular
m2f
--
h
A Dijous, 31 de desembre de 2009, forum-u...@tinyerp.org va escriure:
> class hotel_book(osv.osv):
> _name = 'hotel.book'
>
> def _complete_name(self, cr, uid, ids, name, args, context):
>
> t = {1: u'Physical Locations',
> 2: u'Partner Locations',
> 3: u'V
class hotel_book(osv.osv):
_name = 'hotel.book'
def _complete_name(self, cr, uid, ids, name, args, context):
t = {1: u'Physical Locations',
2: u'Partner Locations',
3: u'Virtual Locations'}
print t
return t
def _name_ge