summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-01-21 13:43:29 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-01-21 13:43:29 +0700
commitff20b62d6932c6be4ffb56f63f3c05be3aa72c06 (patch)
treeb9bfad89162ade294b904275feba80d74d9a7b26 /indoteknik_custom
parentc7f6d959e0e7a2e8adc45cff515f2b5666f3e732 (diff)
<iman> update merchant
Diffstat (limited to 'indoteknik_custom')
-rw-r--r--indoteknik_custom/models/res_partner.py17
-rw-r--r--indoteknik_custom/models/user_form_merchant.py2
-rw-r--r--indoteknik_custom/models/user_merchant_request.py1
-rw-r--r--indoteknik_custom/views/user_form_merchant.xml4
4 files changed, 21 insertions, 3 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py
index 9e53dae1..d7bd260f 100644
--- a/indoteknik_custom/models/res_partner.py
+++ b/indoteknik_custom/models/res_partner.py
@@ -76,8 +76,11 @@ class ResPartner(models.Model):
"this feature", tracking=3)
# MERCHANT
+ # informasi perusahaan
name_merchant = fields.Char(string='Name')
+ pejabat_name = fields.Char(string='Pejabat Name')
pic_merchant = fields.Char(string='PIC Merchant', required=True)
+ pic_position = fields.Char(string='Jabatan PIC')
address_merchant = fields.Char(string='Alamat')
state_merchant = fields.Many2one('res.country.state', string='State')
city_merchant = fields.Many2one('vit.kota', string='Kota')
@@ -92,6 +95,20 @@ class ResPartner(models.Model):
email_finance_merchant = fields.Char(string='Email Finance')
phone_merchant = fields.Char(string='No. Telepon Perusahaan')
mobile_merchant = fields.Char(string='No. Handphone')
+ bisnis_type = fields.Selection([
+ ('1', 'PT'),
+ ('2', 'CV'),
+ ('3', 'Perorangan'),
+ ])
+ website_merchant = fields.Char(string='Website')
+ category_perusahaan = fields.Selection([
+ ('1', 'Principal (Pemegang merk/Produsen)'),
+ ('2', 'Sole Distributor (Distributor Tunggal)'),
+ ('3', 'Authorized Distributor (Distributor Resmi)'),
+ ('4', 'Importer (Pengimpor Barang)'),
+ ('5', 'Wholesaler (Pedagang Besar)'),
+ ])
+
harga_tayang = fields.Char(string='Harga Tayang (HET)')
file_dokumenKtpDirut = fields.Binary(string="KTP Dirut/Direktur", tracking=True, track_visibility="onchange")
file_kartuNama = fields.Binary(string="Kartu Nama", tracking=True, track_visibility="onchange")
diff --git a/indoteknik_custom/models/user_form_merchant.py b/indoteknik_custom/models/user_form_merchant.py
index dd143381..6d881621 100644
--- a/indoteknik_custom/models/user_form_merchant.py
+++ b/indoteknik_custom/models/user_form_merchant.py
@@ -8,7 +8,7 @@ class UserFormMerchant(models.Model):
_inherit = ['mail.thread', 'mail.activity.mixin']
name = fields.Char(string='Name')
- # informasi peruhaan
+ # informasi peruhsaan
name_merchant = fields.Char(string='Name')
pejabat_name = fields.Char(string='Pejabat Name')
pic_merchant = fields.Char(string='PIC Merchant')
diff --git a/indoteknik_custom/models/user_merchant_request.py b/indoteknik_custom/models/user_merchant_request.py
index 7f6c5f3c..a373a771 100644
--- a/indoteknik_custom/models/user_merchant_request.py
+++ b/indoteknik_custom/models/user_merchant_request.py
@@ -70,6 +70,7 @@ class UserMerchantRequest(models.Model):
def write(self, vals):
is_approve = True if self.state_merchant == 'approved' or vals.get('state_merchant') == 'approved' else False
if is_approve:
+ # Informasi Perusahaan
self.user_company_id.name_merchant = self.merchant_id.name_merchant
self.user_company_id.pic_merchant = self.merchant_id.pic_merchant
self.user_company_id.address_merchant = self.merchant_id.address
diff --git a/indoteknik_custom/views/user_form_merchant.xml b/indoteknik_custom/views/user_form_merchant.xml
index cbb7c756..cd3f1de3 100644
--- a/indoteknik_custom/views/user_form_merchant.xml
+++ b/indoteknik_custom/views/user_form_merchant.xml
@@ -63,7 +63,7 @@
<field name="is_kembali_barang" />
<field name="tenggat_waktu" />
<field name="sertifikat_produk" />
- <field name="custom_sertifikat_produk" />
+<!-- <field name="custom_sertifikat_produk" />-->
<field name="tempo_garansi" />
<field name="explain_garansi" />
<field name="is_order_quantity" />
@@ -82,7 +82,7 @@
<field name="file_pricelist" />
</group>
<group>
- <field name="description" />
+<!-- <field name="description" />-->
</group>
</group>
</sheet>