From 803e4f8b3cf9c1d6a43a354023edc1e065f4121e Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 17:21:18 +0700 Subject: initial commit 2 --- indoteknik_custom/models/product_template.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 indoteknik_custom/models/product_template.py (limited to 'indoteknik_custom/models/product_template.py') diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py new file mode 100644 index 00000000..b2816d3f --- /dev/null +++ b/indoteknik_custom/models/product_template.py @@ -0,0 +1,19 @@ +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + x_studio_field_tGhJR = fields.Many2many('x_product_tags', string="Product Tags") + x_manufacture = fields.Many2one( + comodel_name="x_manufactures", + string="Manufactures" + ) + x_model_product = fields.Char(string="Model Produk") + x_product_manufacture = fields.Many2one( + comodel_name="x_manufactures", + string="Manufacture" + ) + x_lazada = fields.Text(string="Lazada") + x_tokopedia = fields.Text(string="Tokopedia") + -- cgit v1.2.3