diff --git a/cor_custom/__manifest__.py b/cor_custom/__manifest__.py index dc068eb..48ec7f2 100644 --- a/cor_custom/__manifest__.py +++ b/cor_custom/__manifest__.py @@ -20,11 +20,12 @@ 'version': '0.1', # any module necessary for this one to work correctly - 'depends': ['base', 'sale_timesheet'], + 'depends': ['base', 'crm', 'sale_timesheet'], # always loaded 'data': [ # 'security/ir.model.access.csv', + 'views/crm_view.xml', 'views/project_view.xml', 'views/hr_timesheet_templates.xml', 'views/views.xml', diff --git a/cor_custom/__pycache__/__init__.cpython-36.pyc b/cor_custom/__pycache__/__init__.cpython-36.pyc deleted file mode 100644 index a2ca7f5..0000000 Binary files a/cor_custom/__pycache__/__init__.cpython-36.pyc and /dev/null differ diff --git a/cor_custom/controllers/__pycache__/__init__.cpython-36.pyc b/cor_custom/controllers/__pycache__/__init__.cpython-36.pyc deleted file mode 100644 index a4434d0..0000000 Binary files a/cor_custom/controllers/__pycache__/__init__.cpython-36.pyc and /dev/null differ diff --git a/cor_custom/controllers/__pycache__/controllers.cpython-36.pyc b/cor_custom/controllers/__pycache__/controllers.cpython-36.pyc deleted file mode 100644 index 38c46b7..0000000 Binary files a/cor_custom/controllers/__pycache__/controllers.cpython-36.pyc and /dev/null differ diff --git a/cor_custom/models/__init__.py b/cor_custom/models/__init__.py index 6495c5e..284dfb7 100644 --- a/cor_custom/models/__init__.py +++ b/cor_custom/models/__init__.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- +from . import crm_lead from . import models from . import project from . import project_overview \ No newline at end of file diff --git a/cor_custom/models/__pycache__/__init__.cpython-36.pyc b/cor_custom/models/__pycache__/__init__.cpython-36.pyc deleted file mode 100644 index f0c84ad..0000000 Binary files a/cor_custom/models/__pycache__/__init__.cpython-36.pyc and /dev/null differ diff --git a/cor_custom/models/__pycache__/models.cpython-36.pyc b/cor_custom/models/__pycache__/models.cpython-36.pyc deleted file mode 100644 index 18206e2..0000000 Binary files a/cor_custom/models/__pycache__/models.cpython-36.pyc and /dev/null differ diff --git a/cor_custom/models/__pycache__/project.cpython-36.pyc b/cor_custom/models/__pycache__/project.cpython-36.pyc deleted file mode 100644 index 58c8290..0000000 Binary files a/cor_custom/models/__pycache__/project.cpython-36.pyc and /dev/null differ diff --git a/cor_custom/models/__pycache__/project_overview.cpython-36.pyc b/cor_custom/models/__pycache__/project_overview.cpython-36.pyc deleted file mode 100644 index 4a5e648..0000000 Binary files a/cor_custom/models/__pycache__/project_overview.cpython-36.pyc and /dev/null differ diff --git a/cor_custom/models/crm_lead.py b/cor_custom/models/crm_lead.py new file mode 100644 index 0000000..41801e1 --- /dev/null +++ b/cor_custom/models/crm_lead.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models, api + + +class Lead(models.Model): + _inherit = 'crm.lead' + + lead_no = fields.Char(string='Lead ID') diff --git a/cor_custom/views/crm_view.xml b/cor_custom/views/crm_view.xml new file mode 100755 index 0000000..643fe2b --- /dev/null +++ b/cor_custom/views/crm_view.xml @@ -0,0 +1,15 @@ + + + + + crm.lead.cor.inherit1 + crm.lead + + + + + + + + +