From dabf2a523d801ac222af046fea3bb08f9db6bf9f Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Sat, 13 Aug 2022 10:06:30 +0700 Subject: Fix view stock.vendor dan buat model-view crm.lead (pengajuan tempo) --- indoteknik_custom/models/crm_lead.py | 4 ++++ indoteknik_custom/models/purchase_order.py | 2 +- indoteknik_custom/views/crm_lead.xml | 8 ++++++++ indoteknik_custom/views/stock_vendor.xml | 4 ++-- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/indoteknik_custom/models/crm_lead.py b/indoteknik_custom/models/crm_lead.py index 0c53bb69..15ec4119 100644 --- a/indoteknik_custom/models/crm_lead.py +++ b/indoteknik_custom/models/crm_lead.py @@ -5,4 +5,8 @@ class CrmLead(models.Model): _inherit = "crm.lead" html_description = fields.Html(string="Descriptions") + file_npwp = fields.Binary(string="Nomor Pokok Wajib Pajak") + file_nib = fields.Binary(string="Nomor Induk Berusaha") + file_tdp = fields.Binary(string="Tanda Daftar Perusahaan") + file_siup = fields.Binary(string="Surat Izin Usaha Perdagangan") diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index f4d7a67a..2c589d36 100644 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -18,7 +18,7 @@ class PurchaseOrder(models.Model): if product_uom_qty == sum_qty_received: status = 'Terproses' - elif product_uom_qty > sum_qty_received and sum_qty_received > 0: + elif product_uom_qty > sum_qty_received > 0: status = 'Sebagian Diproses' else: status = 'Menunggu Diproses' diff --git a/indoteknik_custom/views/crm_lead.xml b/indoteknik_custom/views/crm_lead.xml index 1d3a04fc..58c27050 100644 --- a/indoteknik_custom/views/crm_lead.xml +++ b/indoteknik_custom/views/crm_lead.xml @@ -10,6 +10,14 @@ + + + + + + + + diff --git a/indoteknik_custom/views/stock_vendor.xml b/indoteknik_custom/views/stock_vendor.xml index 5f3269f5..ebf63a6a 100644 --- a/indoteknik_custom/views/stock_vendor.xml +++ b/indoteknik_custom/views/stock_vendor.xml @@ -15,7 +15,7 @@ Stock vendor stock.vendor - + @@ -27,7 +27,7 @@ Stock vendor stock.vendor -
+ -- cgit v1.2.3