From e2d42ebca210467698f163558e6e4390dcecaae9 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 22 Jul 2022 09:55:08 +0700 Subject: add compute web price and stock vendor --- indoteknik_custom/models/stock_vendor.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 indoteknik_custom/models/stock_vendor.py (limited to 'indoteknik_custom/models/stock_vendor.py') 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") -- cgit v1.2.3