Wednesday, January 30, 2013

How to make OpenERP field unique

1.Assume you have inventory item definition on inventory.py
...............
_columns = {
'product_id' : fields.char('Product ID' , size=32 , required=True),
}
2. To make unique add the following line in the class

_sql_constraints=[( 'product_id_uniq', 'unique(product_id)' , 'Duplicate product id !')]

3.Enjoy

Thursday, January 17, 2013

Am enneagram type six


Recently my friend invited me to attend free enneagram session , this session was conducted by Enneagram Institute Ethiopia near CMC was eager to know what it is and at the same time i was not sure if am interested at all.

We have reached there on time and I was looking around wondering what am going to get , after a while two enneagram certified trainers started the session .After brief introduction about enneagram they started video guided discussion about 9 types in enneagram starting from one and so on , since they started this discussion I was so happy trying to label all friends and family on each types and of course wondering which type am going to fit,

Until type six is reached i couldn't relate to any but when six ,I was surprised and I had no word how to express what i felt it just me they are talking and I couldn't believe my behavior is stipulated and being told to me.

And it was quit good experience to know yourself , I learnt about my type in other dimension. i can use this to study my behavior and know more about my type for better personal development.

The trainer told us this session was a glimpse of the course , when the one month course is taken it will include more detailed explanation and how to interact with other types and so on.

What can I say thanks EIE for the enlightenment in this short period.