From 38e43997754a6f2c7eadacd5bf09d8481f82bccc Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Fri, 29 Jul 2022 17:36:54 +0700 Subject: Tambah field html_description dan view di crm.lead --- indoteknik_custom/__manifest__.py | 1 + indoteknik_custom/models/__init__.py | 1 + indoteknik_custom/models/crm_lead.py | 8 ++++++++ indoteknik_custom/views/crm_lead.xml | 17 +++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 indoteknik_custom/models/crm_lead.py create mode 100644 indoteknik_custom/views/crm_lead.xml diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py index fbfac6ea..edadc1a1 100644 --- a/indoteknik_custom/__manifest__.py +++ b/indoteknik_custom/__manifest__.py @@ -24,6 +24,7 @@ 'views/x_partner_purchase_order.xml', 'views/x_product_tags.xml', 'views/stock_vendor.xml', + 'views/crm_lead.xml', 'report/report.xml', 'report/report_banner_banner.xml', 'report/report_banner_banner2.xml', diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py index ee089698..afef17eb 100644 --- a/indoteknik_custom/models/__init__.py +++ b/indoteknik_custom/models/__init__.py @@ -8,3 +8,4 @@ from . import product_template from . import x_partner_purchase_order from . import x_product_tags from . import stock_vendor +from . import crm_lead diff --git a/indoteknik_custom/models/crm_lead.py b/indoteknik_custom/models/crm_lead.py new file mode 100644 index 00000000..0c53bb69 --- /dev/null +++ b/indoteknik_custom/models/crm_lead.py @@ -0,0 +1,8 @@ +from odoo import fields, models + + +class CrmLead(models.Model): + _inherit = "crm.lead" + + html_description = fields.Html(string="Descriptions") + diff --git a/indoteknik_custom/views/crm_lead.xml b/indoteknik_custom/views/crm_lead.xml new file mode 100644 index 00000000..1d3a04fc --- /dev/null +++ b/indoteknik_custom/views/crm_lead.xml @@ -0,0 +1,17 @@ + + + + + CRM Lead + crm.lead + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3