summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_vendor.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-07-22 09:55:08 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-07-22 09:55:08 +0700
commite2d42ebca210467698f163558e6e4390dcecaae9 (patch)
treeb86fc1a2d5b30d04dfef6b7deef9424d06738503 /indoteknik_custom/models/stock_vendor.py
parent5d27587d8c84d74e4fa26f8aaf34843d0261b985 (diff)
add compute web price and stock vendor
Diffstat (limited to 'indoteknik_custom/models/stock_vendor.py')
-rw-r--r--indoteknik_custom/models/stock_vendor.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_vendor.py b/indoteknik_custom/models/stock_vendor.py
new file mode 100644
index 00000000..78baf14c
--- /dev/null
+++ b/indoteknik_custom/models/stock_vendor.py
@@ -0,0 +1,10 @@
+from odoo import fields, models
+
+
+class StockVendor(models.Model):
+ _name = "stock.vendor"
+ _description = "Stock Vendor"
+ _rec_name = "product_variant_id"
+
+ product_variant_id = fields.Many2one("product.product", string="Product Variant")
+ quantity = fields.Integer(string="Quantity")