diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-11-29 14:39:17 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-11-29 14:39:17 +0700 |
| commit | e7b7ccfbe3a96f81066845d12d4cc08e0720a715 (patch) | |
| tree | 8e4900c1c80a5c328ceb9c88234719f5ed4e495f | |
| parent | 8a52457a4d72886a7084a85e24ac2a86fdf89417 (diff) | |
add email and company in wati history
| -rw-r--r-- | indoteknik_custom/models/wati.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/wati_history.xml | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/indoteknik_custom/models/wati.py b/indoteknik_custom/models/wati.py index 1e6ac17f..af1aa7b8 100644 --- a/indoteknik_custom/models/wati.py +++ b/indoteknik_custom/models/wati.py @@ -187,6 +187,8 @@ class WatiHistory(models.Model): last_reply_text = fields.Char(string='Last Reply Text') last_reply_date = fields.Datetime(string='Last Reply Date') expired_date = fields.Datetime(string='Expired Date') + email = fields.Char(string='Email') + perusahaan = fields.Char(string='Perusahaan') # @api.onchange('last_reply_date') # def _compute_expired_date(self): diff --git a/indoteknik_custom/views/wati_history.xml b/indoteknik_custom/views/wati_history.xml index 1b9acc92..28698643 100644 --- a/indoteknik_custom/views/wati_history.xml +++ b/indoteknik_custom/views/wati_history.xml @@ -11,6 +11,8 @@ <field name="sender_name" readonly="1"/> <field name="wa_id" readonly="1"/> <field name="text" readonly="1"/> + <field name="email" readonly="1" optional="hide"/> + <field name="perusahaan" readonly="1" optional="hide"/> <field name="last_reply_by" readonly="1" optional="hide"/> <field name="last_reply_date" readonly="1" optional="hide"/> <field name="last_reply_text" readonly="1" optional="hide"/> @@ -57,6 +59,7 @@ <field name="sender_name" readonly="1"/> <field name="text" readonly="1"/> <field name="wa_id" readonly="1"/> + </group> <group> <field name="conversation_id" readonly="1"/> @@ -70,6 +73,12 @@ <page string="Lines"> <field name="wati_lines"/> </page> + <page string="Others"> + <group> + <field name="email"/> + <field name="perusahaan"/> + </group> + </page> </notebook> </sheet> </form> |
