summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-19 09:57:39 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-19 09:57:39 +0700
commitc1d1b273e2eeb3c4713fe174846ec7687ec2026b (patch)
tree5da911699313c89316ca1199c4312c2220384165
parentd299eca8138b07dcbddf540038b8deeb4fcc7c8a (diff)
<iman> update new register
-rw-r--r--indoteknik_api/controllers/api_v1/user.py1
-rw-r--r--indoteknik_custom/models/res_partner.py3
-rw-r--r--indoteknik_custom/models/user_company_request.py2
3 files changed, 5 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/user.py b/indoteknik_api/controllers/api_v1/user.py
index 4bef2f03..4dfc837b 100644
--- a/indoteknik_api/controllers/api_v1/user.py
+++ b/indoteknik_api/controllers/api_v1/user.py
@@ -203,6 +203,7 @@ class User(controller.Controller):
'user_company_id': new_company.id,
'user_input': business_name
})
+ # tambahkan send email ke user untuk kasi notifikasi akun bisnis ini dalam review
# user.partner_id.parent_id = new_company.id
# user.partner_id.customer_type = new_company.customer_type
# user.partner_id.npwp = new_company.npwp
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py
index 7392b10d..ef857c55 100644
--- a/indoteknik_custom/models/res_partner.py
+++ b/indoteknik_custom/models/res_partner.py
@@ -18,7 +18,8 @@ class ResPartner(models.Model):
('pkp', 'PKP'),
('nonpkp', 'Non PKP')
])
- sppkp = fields.Char(string="SPPKP")
+ sppkp = fields.Char(string="SPPKP", tracking=3)
+ npwp = fields.Char(string="NPWP", tracking=3)
counter = fields.Integer(string="Counter", default=0)
leadtime = fields.Integer(string="Leadtime", default=0)
digital_invoice_tax = fields.Boolean(string="Digital Invoice & Faktur Pajak")
diff --git a/indoteknik_custom/models/user_company_request.py b/indoteknik_custom/models/user_company_request.py
index 56bb8d5d..40ac4446 100644
--- a/indoteknik_custom/models/user_company_request.py
+++ b/indoteknik_custom/models/user_company_request.py
@@ -33,10 +33,12 @@ class UserCompanyRequest(models.Model):
self.user_id.property_account_receivable_id = self.user_company_id.property_account_receivable_id
self.user_id.property_account_payable_id = self.user_company_id.property_account_payable_id
self.user_company_id.active = True
+ # tambahkan send email kalau bisnis berhsil di buat
else:
new_company = self.env['res.partner'].create({
'name': self.user_input
})
self.user_id.parent_id = new_company.id
+ # tambahkan send email kalau bisnis ditolak di buat
return super(UserCompanyRequest, self).write(vals)
\ No newline at end of file