diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-01-11 09:26:02 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-01-11 09:26:02 +0700 |
| commit | aff29db4fe020684f83e5e6449bf0a4061d77036 (patch) | |
| tree | caf5d6cdbab36a7c54b1d32c491a51fa29e7b048 | |
| parent | 7499b798a75a3dec8fc41d28e091f7df1a3c19d6 (diff) | |
add custom mail marketing
| -rwxr-xr-x | indoteknik_custom/__manifest__.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/models/__init__.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/models/custom_mail_marketing.py | 16 | ||||
| -rwxr-xr-x | indoteknik_custom/security/ir.model.access.csv | 3 | ||||
| -rw-r--r-- | indoteknik_custom/views/custom_mail_marketing.xml | 82 |
5 files changed, 102 insertions, 1 deletions
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 @@ +<?xml version="1.0" encoding="utf-8" ?> +<odoo> + <record id="custom_mail_marketing_tree" model="ir.ui.view"> + <field name="name">custom.mail.marketing.tree</field> + <field name="model">custom.mail.marketing</field> + <field name="arch" type="xml"> + <tree> + <field name="col1_string"/> + <field name="col2_string"/> + <field name="col3_string"/> + <field name="col4_string"/> + <field name="col5_string"/> + <field name="col6_string"/> + <field name="col7_string"/> + <field name="col8_string"/> + <field name="col9_string"/> + <field name="col10_string"/> + </tree> + </field> + </record> + + <record id="custom_mail_marketing_form" model="ir.ui.view"> + <field name="name">custom.mail.marketing.form</field> + <field name="model">custom.mail.marketing</field> + <field name="arch" type="xml"> + <form> + <sheet> + <group> + <group> + <field name="col1_string"/> + <field name="col2_string"/> + <field name="col3_string"/> + <field name="col4_string"/> + <field name="col5_string"/> + <field name="col6_string"/> + <field name="col7_string"/> + <field name="col8_string"/> + <field name="col9_string"/> + <field name="col10_string"/> + </group> + </group> + </sheet> + </form> + </field> + </record> + + <record id="view_custom_mail_marketing_filter" model="ir.ui.view"> + <field name="name">custom.mail.marketing.list.select</field> + <field name="model">custom.mail.marketing</field> + <field name="priority" eval="15"/> + <field name="arch" type="xml"> + <search string="Search Channel"> + <field name="col1_string"/> + <field name="col2_string"/> + <field name="col3_string"/> + <field name="col4_string"/> + <field name="col5_string"/> + <field name="col6_string"/> + <field name="col7_string"/> + <field name="col8_string"/> + <field name="col9_string"/> + <field name="col10_string"/> + </search> + </field> + </record> + + <record id="custom_mail_marketing_action" model="ir.actions.act_window"> + <field name="name">Custom Mail Marketing</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">custom.mail.marketing</field> + <field name="search_view_id" ref="view_custom_mail_marketing_filter"/> + <field name="view_mode">tree,form</field> + </record> + + <menuitem + id="menu_custom_mail_marketing" + name="Custom Mail Marketing" + parent="website_sale.menu_orders" + sequence="4" + action="custom_mail_marketing_action" + /> +</odoo>
\ No newline at end of file |
