summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-12-01 08:14:46 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-12-01 08:14:46 +0700
commit437ed107ee1730c38932ae6f1d22e7095617d61c (patch)
tree5ad4f34894b56d49e81c49aed1179e64d1e087b1
parent132fd71f73133d18aabca1715af2313bc05917b6 (diff)
bug fix wati scheduler
-rw-r--r--indoteknik_custom/models/wati.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/wati.py b/indoteknik_custom/models/wati.py
index 00b46360..d9fb7247 100644
--- a/indoteknik_custom/models/wati.py
+++ b/indoteknik_custom/models/wati.py
@@ -191,7 +191,7 @@ class WatiHistory(models.Model):
perusahaan = fields.Char(string='Perusahaan')
is_get_attribute = fields.Boolean(string='Get Attribute', default=False)
- def _get_attribute_wati(self, test):
+ def _get_attribute_wati(self):
# url = 'https://live-server-2106.wati.io/api/v1/getContacts'
# cookies = {
@@ -219,7 +219,7 @@ class WatiHistory(models.Model):
'|',
('perusahaan', '=', False),
('email', '=', False),
- ]#TODO must flagged after get attribute
+ ]
limit = 50
wati_histories = self.env['wati.history'].search(domain, limit=limit)
count = 0
@@ -251,7 +251,7 @@ class WatiHistory(models.Model):
# end for 1
wati_history.perusahaan = perusahaan
wati_history.email = email
- wati_history.get_attribute = True
+ wati_history.is_get_attribute = True
# @api.onchange('last_reply_date')
# def _compute_expired_date(self):