diff --git a/__init__.py b/__init__.py
index 2a99fa8..cde864b 100644
--- a/__init__.py
+++ b/__init__.py
@@ -1 +1,3 @@
-from . import ycoworking_model
+# -*- coding: utf-8 -*-
+
+from . import models
diff --git a/__manifest__.py b/__manifest__.py
index 1652095..dd732c2 100644
--- a/__manifest__.py
+++ b/__manifest__.py
@@ -16,18 +16,15 @@
# along with this program. If not, see .
{
- 'name': 'yaltik_coworking',
+ 'name': 'Coworking',
'summary': 'yaltik coworking module simplify your coworking gerance',
'description': """ yaltik coworking module simplify your coworking gerance """,
- 'version': '0.0.0.0.1',
+ 'version': '10.0.0.0.1',
'category': 'Useless',
'author': 'Yaltik',
'license': 'AGPL-3',
'application': False,
'installable': True,
- 'data': ['views/yaltikcoworking_menu.xml',
- 'views/yaltikcoworking_view.xml',
- ],
-
+ 'data': ['views/coworking_menu.xml', 'views/coworker_views.xml'],
'depends': ['base']
}
diff --git a/models/__init__.py b/models/__init__.py
new file mode 100644
index 0000000..03e0817
--- /dev/null
+++ b/models/__init__.py
@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+
+from . import coworker
diff --git a/models/coworker.py b/models/coworker.py
new file mode 100644
index 0000000..76bd384
--- /dev/null
+++ b/models/coworker.py
@@ -0,0 +1,31 @@
+# -*- coding: utf-8 -*-
+
+""" Coworker module """
+
+from odoo import models, fields
+
+class Coworker(models.Model):
+ """ Coworker model """
+ _name = 'coworking.coworker'
+ _description = 'Coworker model definition'
+
+ name = fields.Char(required=True)
+ firstname = fields.Char('First name', required=True)
+ coworker_type = fields.Selection([('staffer', 'Staffer'),
+ ('worker', 'Worker'), ('member', 'Member'),
+ ('volunteer', 'Volunteer'),
+ ('visitor', 'Visitor')])
+ company_name = fields.Char('Company')
+ job = fields.Char()
+
+ street = fields.Char()
+ postal_code = fields.Char()
+ city = fields.Char()
+ phone_number = fields.Char()
+ gsm = fields.Char('GSM')
+ email = fields.Char()
+ url = fields.Char('URL')
+ note = fields.Text()
+
+ is_done = fields.Boolean('Done?')
+ is_active = fields.Boolean('Active?', default=True)
diff --git a/views/coworker_views.xml b/views/coworker_views.xml
new file mode 100644
index 0000000..4e2f70b
--- /dev/null
+++ b/views/coworker_views.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ Coworker Form
+ coworking.coworker
+
+
+
+
+
+
diff --git a/views/coworking_menu.xml b/views/coworking_menu.xml
new file mode 100644
index 0000000..8b0cc1d
--- /dev/null
+++ b/views/coworking_menu.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/views/yaltikcoworking_menu.xml b/views/yaltikcoworking_menu.xml
deleted file mode 100644
index 31f3810..0000000
--- a/views/yaltikcoworking_menu.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
diff --git a/views/yaltikcoworking_view.xml b/views/yaltikcoworking_view.xml
deleted file mode 100644
index f866aa3..0000000
--- a/views/yaltikcoworking_view.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
- coworker Form
- coworker
-
-
-
-
-
diff --git a/ycoworking_model.py b/ycoworking_model.py
deleted file mode 100644
index 2c12b3b..0000000
--- a/ycoworking_model.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# -*- coding: utf-8 -*-
-from odoo import models, fields
-class coworker (models.Model):
- _name = 'coworker'
- _description = 'Manage the coworkers'
-
- 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)