summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-10-21 10:31:01 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-10-21 10:31:01 +0700
commit2016ebabb250d1fe521d9b00668b7fa4313dff81 (patch)
treede31b901f8d221e4a574596f3a7cb5d36156c531
parent49d7b473a8cd458ade6a4e703c276b0771707db2 (diff)
add field count trx po and vendor
-rwxr-xr-xindoteknik_custom/models/purchase_pricelist.py2
-rwxr-xr-xindoteknik_custom/views/purchase_pricelist.xml6
2 files changed, 8 insertions, 0 deletions
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 @@
<field name="system_price"/>
<field name="human_last_update"/>
<field name="system_last_update"/>
+ <field name="count_trx_po"/>
+ <field name="count_trx_po_vendor"/>
</tree>
</field>
</record>
@@ -27,6 +29,10 @@
<field name="vendor_id" context="{'res_partner_search_mode': 'supplier'}"/>
<field name="product_price"/>
<field name="system_price"/>
+ <field name="human_last_update"/>
+ <field name="system_last_update"/>
+ <field name="count_trx_po"/>
+ <field name="count_trx_po_vendor"/>
</group>
</group>
</sheet>