diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-09-20 16:47:24 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-09-20 16:47:24 +0700 |
| commit | 6c5d45e9062c6d5b2c3c3070a3d4eaead923c101 (patch) | |
| tree | 83e721832fddfcf2a66d58568aef66da7dc951e8 | |
| parent | 3f8fd250ee63ad4db48d45284f055bda641fec08 (diff) | |
<iman> delete user company name
| -rw-r--r-- | indoteknik_api/controllers/api_v1/user.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/models/users.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/res_users.xml | 6 |
3 files changed, 4 insertions, 5 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py index 669da281..7166bd79 100644 --- a/indoteknik_api/controllers/api_v1/user.py +++ b/indoteknik_api/controllers/api_v1/user.py @@ -327,7 +327,7 @@ class User(controller.Controller): ] company_request = request.env['user.company.request'].search(parameter, limit=1) if company_request: - user.user_company_name = company_request.user_input + user.parent_name = company_request.user_input if company_request.is_approve == False: user.send_company_request_mail() return self.response(response) diff --git a/indoteknik_custom/models/users.py b/indoteknik_custom/models/users.py index 981d787f..d95b56e7 100644 --- a/indoteknik_custom/models/users.py +++ b/indoteknik_custom/models/users.py @@ -14,7 +14,6 @@ class Users(models.Model): is_admin_reconcile = fields.Boolean(string='Admin Reconcile', help='Berhak Mengedit Journal Reconcile') is_inbound = fields.Boolean(string='Operator Inbound') is_outbound = fields.Boolean(string='Operator Outbound') - user_company_name = fields.Char(string="User Company Name") def notify_internal_users(self, message, title): users = self.search([('share', '=', False)]) diff --git a/indoteknik_custom/views/res_users.xml b/indoteknik_custom/views/res_users.xml index 8ced0e82..39b9d43e 100644 --- a/indoteknik_custom/views/res_users.xml +++ b/indoteknik_custom/views/res_users.xml @@ -94,7 +94,7 @@ <tr> <td align="center" style="min-width: 590px;"> <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> - <tr><td style="padding-bottom: 24px;"><b>Halo ${object.user_company_name},</b></td></tr> + <tr><td style="padding-bottom: 24px;"><b>Halo ${object.parent_name},</b></td></tr> <tr><td style="padding-bottom: 16px;">Terima kasih atas kepercayaan Anda dengan mendaftarkan bisnis Anda di Indoteknik.com. Permohonan Anda saat ini sedang dalam proses review oleh tim kami.</td></tr> <tr><td style="padding-bottom: 16px;">Saat ini, kami sedang melakukan pengecekan akhir pada data yang Anda berikan. Proses ini biasanya memakan waktu sekitar 2 x 24 jam.</td></tr> @@ -154,7 +154,7 @@ <tr> <td align="center" style="min-width: 590px;"> <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> - <tr><td style="padding-bottom: 24px;"><b>Yth. ${object.user_company_name},</b></td></tr> + <tr><td style="padding-bottom: 24px;"><b>Yth. ${object.parent_name},</b></td></tr> <tr><td style="padding-bottom: 16px;">Selamat! Pendaftaran akun bisnis Anda di indoteknik.com telah <b>berhasil diverifikasi & sudah aktif.</b> kini anda dapat menikmati berbagai kemudahan dalam berbelanja, antara lain:</td></tr> <tr><td style="padding-bottom: 16px;"><b>Fitur Faktur Pajak & Invoice:</b> Dengan mudah download faktur pajak & Invoice Anda secara digital.</td></tr> @@ -215,7 +215,7 @@ <tr> <td align="center" style="min-width: 590px;"> <table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"> - <tr><td style="padding-bottom: 24px;"><b>Yth. ${object.user_company_name},</b></td></tr> + <tr><td style="padding-bottom: 24px;"><b>Yth. ${object.parent_name},</b></td></tr> <tr><td style="padding-bottom: 16px;">Terima kasih atas minat Anda untuk mendaftar akun bisnis di Indoteknik.com. Kami telah menerima permohonan pendaftaran Anda dan saat ini sedang dalam proses review.</td></tr> <tr><td style="padding-bottom: 16px;">Namun, setelah kami lakukan pengecekan, kami menemukan bahwa beberapa informasi yang Anda berikan masih belum lengkap. Untuk dapat melanjutkan proses pendaftaran, mohon kiranya Anda dapat melengkapi data-data berikut:</td></tr> |
