summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-02-16 13:49:18 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-02-16 13:49:18 +0700
commit57b12c36df829ab358a68a5356c3549cf9714900 (patch)
tree7ec39051cbf72dcbfbdfba42f8d41c9eb2c99afa /indoteknik_custom
parent0f99be075d857fb6bc7985b0fe8b429f53d3a9a0 (diff)
add wati notification handle
Diffstat (limited to 'indoteknik_custom')
-rwxr-xr-xindoteknik_custom/models/__init__.py1
-rw-r--r--indoteknik_custom/models/wati.py11
-rwxr-xr-xindoteknik_custom/security/ir.model.access.csv3
3 files changed, 14 insertions, 1 deletions
diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py
index 55eca2e7..62a024e3 100755
--- a/indoteknik_custom/models/__init__.py
+++ b/indoteknik_custom/models/__init__.py
@@ -48,3 +48,4 @@ from . import website_ads
from . import leads_monitoring
from . import midtrans
from . import ip_lookup
+from . import wati
diff --git a/indoteknik_custom/models/wati.py b/indoteknik_custom/models/wati.py
new file mode 100644
index 00000000..f9ab6df2
--- /dev/null
+++ b/indoteknik_custom/models/wati.py
@@ -0,0 +1,11 @@
+from odoo import fields, models, api
+import logging
+
+_logger = logging.getLogger(__name__)
+
+
+class WatiNotification(models.Model):
+ _name = 'wati.notification'
+
+ json_raw = fields.Char(string='JSON Raw Text')
+
diff --git a/indoteknik_custom/security/ir.model.access.csv b/indoteknik_custom/security/ir.model.access.csv
index 2cfe86a9..977f3a1b 100755
--- a/indoteknik_custom/security/ir.model.access.csv
+++ b/indoteknik_custom/security/ir.model.access.csv
@@ -32,4 +32,5 @@ access_midtrans_notification,access.midtrans.notification,model_midtrans_notific
access_midtrans_recurring,access.midtrans.recurring,model_midtrans_recurring,,1,1,1,1
access_midtrans_account,access.midtrans.account,model_midtrans_account,,1,1,1,1
access_ip_lookup,access.ip.lookup,model_ip_lookup,,1,1,1,1
-access_ip_lookup_line,access.ip.lookup.line,model_ip_lookup_line,,1,1,1,1 \ No newline at end of file
+access_ip_lookup_line,access.ip.lookup.line,model_ip_lookup_line,,1,1,1,1
+access_wati_notification,access.wati.notification,model_wati_notification,,1,1,1,1 \ No newline at end of file