From 2016ebabb250d1fe521d9b00668b7fa4313dff81 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Sat, 21 Oct 2023 10:31:01 +0700 Subject: add field count trx po and vendor --- indoteknik_custom/models/purchase_pricelist.py | 2 ++ indoteknik_custom/views/purchase_pricelist.xml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/indoteknik_custom/models/purchase_pricelist.py b/indoteknik_custom/models/purchase_pricelist.py index 3607defe..b7c3785a 100755 --- a/indoteknik_custom/models/purchase_pricelist.py +++ b/indoteknik_custom/models/purchase_pricelist.py @@ -14,6 +14,8 @@ class PurchasePricelist(models.Model): system_price = fields.Float(string='System Price', required=True) human_last_update = fields.Datetime(string='Human Update') system_last_update = fields.Datetime(string='System Update') + count_trx_po = fields.Integer(string='Count Trx Product') + count_trx_po_vendor = fields.Integer(string='Count Trx Vendor') @api.depends('product_id', 'vendor_id') def _compute_name(self): diff --git a/indoteknik_custom/views/purchase_pricelist.xml b/indoteknik_custom/views/purchase_pricelist.xml index f9fd52ba..f4cd4e78 100755 --- a/indoteknik_custom/views/purchase_pricelist.xml +++ b/indoteknik_custom/views/purchase_pricelist.xml @@ -11,6 +11,8 @@ + + @@ -27,6 +29,10 @@ + + + + -- cgit v1.2.3