diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-07-29 17:36:54 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-07-29 17:36:54 +0700 |
| commit | 38e43997754a6f2c7eadacd5bf09d8481f82bccc (patch) | |
| tree | a96811475686ac9c8243742ab760456cd24be673 | |
| parent | ca84cc359ed7535474aafac877843374baac5414 (diff) | |
Tambah field html_description dan view di crm.lead
| -rw-r--r-- | indoteknik_custom/__manifest__.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/models/__init__.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/models/crm_lead.py | 8 | ||||
| -rw-r--r-- | indoteknik_custom/views/crm_lead.xml | 17 |
4 files changed, 27 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="crm_lead_form_view_inherit" model="ir.ui.view"> + <field name="name">CRM Lead</field> + <field name="model">crm.lead</field> + <field name="inherit_id" ref="crm.crm_lead_view_form"/> + <field name="arch" type="xml"> + <page name="lead" position="after"> + <page string="Description" name="description"> + <field name="html_description"/> + </page> + </page> + </field> + </record> + </data> +</odoo>
\ No newline at end of file |
