diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-08-13 10:30:48 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-08-13 10:30:48 +0700 |
| commit | 3ea9850077463648743e0ae87966687dd63c378e (patch) | |
| tree | ece820f8858e122c3914e846345bc8805af6ea02 | |
| parent | 39495df4a7abaf16e0b4b5453d11fffb43d2a499 (diff) | |
| parent | dabf2a523d801ac222af046fea3bb08f9db6bf9f (diff) | |
Merge branch 'master' of bitbucket.org:altafixco/indoteknik-addons
| -rw-r--r-- | indoteknik_custom/models/crm_lead.py | 4 | ||||
| -rw-r--r-- | indoteknik_custom/models/purchase_order.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/crm_lead.xml | 8 | ||||
| -rw-r--r-- | indoteknik_custom/views/stock_vendor.xml | 9 |
4 files changed, 19 insertions, 4 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 @@ <page string="Description" name="description"> <field name="html_description"/> </page> + <page string="Pengajuan Tempo" name="pengajuan_tempo"> + <group> + <field name="file_npwp" widget="pdf_viewer"/> + <field name="file_nib" widget="pdf_viewer"/> + <field name="file_tdp" widget="pdf_viewer"/> + <field name="file_siup" widget="pdf_viewer"/> + </group> + </page> </page> </field> </record> diff --git a/indoteknik_custom/views/stock_vendor.xml b/indoteknik_custom/views/stock_vendor.xml index 70970fb6..ebf63a6a 100644 --- a/indoteknik_custom/views/stock_vendor.xml +++ b/indoteknik_custom/views/stock_vendor.xml @@ -16,8 +16,9 @@ <field name="model">stock.vendor</field> <field name="arch" type="xml"> <tree> + <field name="quantity" widget="badge" decoration-primary="True"/> <field name="product_variant_id"/> - <field name="quantity"/> + <field name="__last_update"/> </tree> </field> </record> @@ -31,7 +32,8 @@ <group> <group> <field name="product_variant_id"/> - <field name="quantity"/> + <field name="quantity" widget="badge" decoration-primary="True"/> + <field name="__last_update"/> </group> <group></group> </group> @@ -44,6 +46,7 @@ name="Stock vendor" parent="sale.product_menu_catalog" sequence="3" - action="stock_vendor_action"/> + action="stock_vendor_action" + /> </data> </odoo>
\ No newline at end of file |
