diff --git a/sub_project/__init__.py b/sub_project/__init__.py new file mode 100644 index 0000000..9a7e03e --- /dev/null +++ b/sub_project/__init__.py @@ -0,0 +1 @@ +from . import models \ No newline at end of file diff --git a/sub_project/__manifest__.py b/sub_project/__manifest__.py new file mode 100644 index 0000000..8e6f221 --- /dev/null +++ b/sub_project/__manifest__.py @@ -0,0 +1,16 @@ +{ + 'name': 'sub_project', + 'version': '', + 'summary': 'Sub Project of sub project', + 'description': 'Sub Project of sub project', + 'category': '', + 'author': '', + 'website': '', + 'license': '', + 'depends': ['base', 'project'], + 'data': ['views/sub_project.xml'], + 'demo': [''], + 'installable': True, + 'auto_install': False, + +} \ No newline at end of file diff --git a/sub_project/__pycache__/__init__.cpython-36.pyc b/sub_project/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..07b288b Binary files /dev/null and b/sub_project/__pycache__/__init__.cpython-36.pyc differ diff --git a/sub_project/models/__init__.py b/sub_project/models/__init__.py new file mode 100644 index 0000000..d30a3e9 --- /dev/null +++ b/sub_project/models/__init__.py @@ -0,0 +1 @@ +from . import sub_project \ No newline at end of file diff --git a/sub_project/models/__pycache__/__init__.cpython-36.pyc b/sub_project/models/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..db5f834 Binary files /dev/null and b/sub_project/models/__pycache__/__init__.cpython-36.pyc differ diff --git a/sub_project/models/__pycache__/sub_project.cpython-36.pyc b/sub_project/models/__pycache__/sub_project.cpython-36.pyc new file mode 100644 index 0000000..04b8db2 Binary files /dev/null and b/sub_project/models/__pycache__/sub_project.cpython-36.pyc differ diff --git a/sub_project/models/sub_project.py b/sub_project/models/sub_project.py new file mode 100644 index 0000000..39eaf43 --- /dev/null +++ b/sub_project/models/sub_project.py @@ -0,0 +1,9 @@ +from odoo import api, fields, models + + +class SubProject(models.Model): + _inherit = "project.project" + _description = "Sub Project" + + is_sub_project = fields.Boolean("Is Sub Project") + parent_project = fields.Many2one('project.project', string='Parent Project') \ No newline at end of file diff --git a/sub_project/views/sub_project.xml b/sub_project/views/sub_project.xml new file mode 100644 index 0000000..51a8219 --- /dev/null +++ b/sub_project/views/sub_project.xml @@ -0,0 +1,26 @@ + + + + + + project.project.form.inherit + project.project + + + + + + + + + + + + + + + + + + \ No newline at end of file