From aff29db4fe020684f83e5e6449bf0a4061d77036 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 11 Jan 2023 09:26:02 +0700 Subject: add custom mail marketing --- indoteknik_custom/__manifest__.py | 1 + indoteknik_custom/models/__init__.py | 1 + indoteknik_custom/models/custom_mail_marketing.py | 16 +++++ indoteknik_custom/security/ir.model.access.csv | 3 +- indoteknik_custom/views/custom_mail_marketing.xml | 82 +++++++++++++++++++++++ 5 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 indoteknik_custom/models/custom_mail_marketing.py create mode 100644 indoteknik_custom/views/custom_mail_marketing.xml diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py index 253bddd2..421b7cb2 100755 --- a/indoteknik_custom/__manifest__.py +++ b/indoteknik_custom/__manifest__.py @@ -55,6 +55,7 @@ 'views/customer_review.xml', 'views/website_content_channel.xml', 'views/website_content.xml', + 'views/custom_mail_marketing.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 4b9d4545..3d4d646b 100755 --- a/indoteknik_custom/models/__init__.py +++ b/indoteknik_custom/models/__init__.py @@ -42,3 +42,4 @@ from . import sales_outstanding from . import customer_review from . import website_content from . import invoice_reklas +from . import custom_mail_marketing diff --git a/indoteknik_custom/models/custom_mail_marketing.py b/indoteknik_custom/models/custom_mail_marketing.py new file mode 100644 index 00000000..8a81974f --- /dev/null +++ b/indoteknik_custom/models/custom_mail_marketing.py @@ -0,0 +1,16 @@ +from odoo import fields, models, api, _ + + +class CustomMailMarketing(models.Model): + _name = 'custom.mail.marketing' + + col1_string = fields.Char(string='col1_string') + col2_string = fields.Char(string='col2_string') + col3_string = fields.Char(string='col3_string') + col4_string = fields.Char(string='col4_string') + col5_string = fields.Char(string='col5_string') + col6_string = fields.Char(string='col6_string') + col7_string = fields.Char(string='col7_string') + col8_string = fields.Char(string='col8_string') + col9_string = fields.Char(string='col9_string') + col10_string = fields.Char(string='col10_string') diff --git a/indoteknik_custom/security/ir.model.access.csv b/indoteknik_custom/security/ir.model.access.csv index 67bce62c..5eefa618 100755 --- a/indoteknik_custom/security/ir.model.access.csv +++ b/indoteknik_custom/security/ir.model.access.csv @@ -24,4 +24,5 @@ access_sales_outstanding,access.sales.outstanding,model_sales_outstanding,,1,1,1 access_customer_review,access.customer.review,model_customer_review,,1,1,1,1 access_website_content_channel,access.website.content.channel,model_website_content_channel,,1,1,1,1 access_website_content,access.website.content,model_website_content,,1,1,1,1 -access_invoice_reklas,access.invoice.reklas,model_invoice_reklas,,1,1,1,1 \ No newline at end of file +access_invoice_reklas,access.invoice.reklas,model_invoice_reklas,,1,1,1,1 +access_custom_mail_marketing,access.custom.mail.marketing,model_custom_mail_marketing,,1,1,1,1 \ No newline at end of file diff --git a/indoteknik_custom/views/custom_mail_marketing.xml b/indoteknik_custom/views/custom_mail_marketing.xml new file mode 100644 index 00000000..d460a41d --- /dev/null +++ b/indoteknik_custom/views/custom_mail_marketing.xml @@ -0,0 +1,82 @@ + + + + custom.mail.marketing.tree + custom.mail.marketing + + + + + + + + + + + + + + + + + + custom.mail.marketing.form + custom.mail.marketing + +
+ + + + + + + + + + + + + + + + +
+
+
+ + + custom.mail.marketing.list.select + custom.mail.marketing + + + + + + + + + + + + + + + + + + + Custom Mail Marketing + ir.actions.act_window + custom.mail.marketing + + tree,form + + + +
\ No newline at end of file -- cgit v1.2.3