from openerp.osv import fields, osv

class web_calendar_contacts(osv.osv):
    _name = 'web_calendar.contacts'    

    _columns = {
        'user_id': fields.many2one('res.users','Me'),
        'partner_id': fields.many2one('res.partner','Contact'),
        'active':fields.boolean('active'),        
     }
    _defaults = {
        'user_id': lambda self, cr, uid, ctx: uid,
        'active' : True,        
    }
from openerp.osv import fields, osv

class web_calendar_contacts(osv.osv):
    _name = 'web_calendar.contacts'    

    _columns = {
        'user_id': fields.many2one('res.users','Me'),
        'partner_id': fields.many2one('res.partner','Contact',required=True),
        'active':fields.boolean('active'),        
     }
    _defaults = {
        'user_id': lambda self, cr, uid, ctx: uid,
        'active' : True,        
    }
Add required on field res.partner from model Contacts to avoid the creation of empty coworkers
[FIX] Add required on field res.partner from model Contacts to avoid the creation of empty coworkers

bzr revid: jke@openerp.com-20131218091020-8upymhda9nd84fg8