summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/res_partner.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-12-09 15:04:12 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-12-09 15:04:12 +0700
commit02eacd54387953f42a884a22544e2f7c94081536 (patch)
treebd0632ce4040c3712d06c1d4459716bbb3050004 /indoteknik_custom/models/res_partner.py
parentaf85c0d2248728fe33675dcec6e513eefd6553a4 (diff)
<iman> update pengajuan tempo
Diffstat (limited to 'indoteknik_custom/models/res_partner.py')
-rw-r--r--indoteknik_custom/models/res_partner.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py
index d2395dc5..835ac65d 100644
--- a/indoteknik_custom/models/res_partner.py
+++ b/indoteknik_custom/models/res_partner.py
@@ -36,7 +36,7 @@ class ResPartner(models.Model):
account_number_tempo = fields.Char(string="Nomor Rekening Bank")
website_tempo = fields.Char(string='Website')
estimasi_tempo = fields.Char(string='Estimasi Pembelian Pertahun')
- tempo_duration = fields.Char(string='Durasi Tempo')
+ tempo_duration = fields.Many2one('account.payment.term', string='Durasi Tempo')
tempo_limit = fields.Char(string='Limit Tempo')
category_produk_ids = fields.Many2many('product.public.category', string='Kategori Produk yang Digunakan', domain=lambda self: self._get_default_category_domain())
@@ -309,6 +309,9 @@ class ResPartner(models.Model):
'dokumen_laporan_keuangan': vals.get('dokumen_laporan_keuangan'),
'dokumen_foto_kantor': vals.get('dokumen_foto_kantor'),
'dokumen_tempat_bekerja': vals.get('dokumen_tempat_bekerja'),
+
+ # internal_notes
+ 'comment': vals.get('comment')
}
# Lakukan update pada semua child secara rekursif