commit c64f00579ea7deece384ab08ef0b94cb1ee347ba Author: michel Date: Fri Nov 3 11:17:21 2017 +0100 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..2a99fa8 --- /dev/null +++ b/__init__.py @@ -0,0 +1 @@ +from . import ycoworking_model diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..1652095 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- + +# Copyright 2017 Firstname Lastname +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +{ + 'name': 'yaltik_coworking', + 'summary': 'yaltik coworking module simplify your coworking gerance', + 'description': """ yaltik coworking module simplify your coworking gerance """, + 'version': '0.0.0.0.1', + 'category': 'Useless', + 'author': 'Yaltik', + 'license': 'AGPL-3', + 'application': False, + 'installable': True, + 'data': ['views/yaltikcoworking_menu.xml', + 'views/yaltikcoworking_view.xml', + ], + + 'depends': ['base'] +} diff --git a/views/yaltikcoworking_menu.xml b/views/yaltikcoworking_menu.xml new file mode 100644 index 0000000..31f3810 --- /dev/null +++ b/views/yaltikcoworking_menu.xml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/views/yaltikcoworking_view.xml b/views/yaltikcoworking_view.xml new file mode 100644 index 0000000..ef62782 --- /dev/null +++ b/views/yaltikcoworking_view.xml @@ -0,0 +1,38 @@ + + + + coworker Form + coworker + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
diff --git a/ycoworking_model.py b/ycoworking_model.py new file mode 100644 index 0000000..c2e37ca --- /dev/null +++ b/ycoworking_model.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from odoo import models, fields +class coworker (models.Model): + _name = 'coworker' + _description = 'Gestion des utilisateurs de l espace' + 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) + 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)