Thanks a lot anoop, I've tried it in partner.py, but somehow nothing happens. Here's the snippet:
class res_partner(osv.osv): _description='Partner' _name = "res.partner" _order = "name" _columns = { 'name': fields.char('Name', size=128, required=True, select=True), 'date': fields.date('Date'), 'title': fields.selection(_partner_title_get, 'Title', size=32), 'parent_id': fields.many2one('res.partner','Main Company', select=True), 'child_ids': fields.one2many('res.partner', 'parent_id', 'Partner Ref.'), 'ref': fields.char('Code', size=64), 'lang': fields.selection(_lang_get, 'Language', size=5), 'user_id': fields.many2one('res.users', 'Salesman'), 'responsible': fields.many2one('res.users', 'Users'), 'vat': fields.char('VAT',size=32 ,help="Value Added Tax number"), 'bank_ids': fields.one2many('res.partner.bank', 'partner_id', 'Banks'), 'website': fields.char('Website',size=64), 'comment': fields.text('Notes'), 'address': fields.one2many('res.partner.address', 'partner_id', 'Contacts'), 'category_id': fields.many2many('res.partner.category', 'res_partner_category_rel', 'partner_id', 'category_id', 'Categories'), 'events': fields.one2many('res.partner.event', 'partner_id', 'events'), 'credit_limit': fields.float(string='Credit Limit'), 'ean13': fields.char('EAN13', size=13), 'active': fields.boolean('Active'), } _defaults = { 'active': lambda *a: 1, } _sql_constraints = [ ('name', 'UNIQUE (name)', 'The name of the partner must be unique !') ] Any ideas? Thanks in forward... -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=60853#60853 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users