michel_coworking/ycoworking_model.py

25 lines
1.1 KiB
Python
Raw Normal View History

2017-11-03 11:17:21 +01:00
# -*- coding: utf-8 -*-
from odoo import models, fields
class coworker (models.Model):
_name = 'coworker'
2017-11-03 11:41:11 +01:00
_description = 'Manage the coworkers'
2017-11-03 11:17:21 +01:00
name = fields.Char('Name', required=True)
firstname = fields.Char('First name', required=True)
coworkertype = fields.Selection([('staffer', 'Staffer'), ('worker', 'Worker'), ('member', 'Member'), ('volunteer', 'Volunteer'), ('visitor', 'Visitor')])
companyname = fields.Char('Company', required=False)
job = fields.Char('Job', required=False)
2017-11-03 11:41:11 +01:00
2017-11-03 11:17:21 +01:00
street = fields.Char('Street', required=False)
postalcode = fields.Char('Postal code', required=False)
city = fields.Char('Ville', required=False)
phonenumber = fields.Char('Phone number', required=False)
gsm = fields.Char('GSM', required=False)
email = fields.Char('Email', required=False)
url = fields.Char('URL', required=False)
create_date = fields.Char('Date of creation', required=False)
note = fields.Text('Note', required=False)
is_done = fields.Boolean('Done?')
active = fields.Boolean('Active?', default=True)