- Preserved explicit 3rd-party copyright notices - Explicit boilerplate should not be necessary - copyright law applies automatically in all countries thanks to Berne Convention + WTO rules, and a reference to the applicable license is clear enough.
17 lines
534 B
Python
17 lines
534 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from openerp.osv import fields, osv
|
|
|
|
class calendar_contacts(osv.osv):
|
|
_name = 'calendar.contacts'
|
|
|
|
_columns = {
|
|
'user_id': fields.many2one('res.users','Me'),
|
|
'partner_id': fields.many2one('res.partner','Employee',required=True, domain=[]),
|
|
'active':fields.boolean('active'),
|
|
}
|
|
_defaults = {
|
|
'user_id': lambda self, cr, uid, ctx: uid,
|
|
'active' : True,
|
|
} |