diff options
| -rw-r--r-- | indoteknik_custom/models/wati.py | 6 |
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): |
