From 1ca3b3df3421961caec3b747a364071c80f5c7da Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 17:14:58 +0700 Subject: initial commit --- custom_indoteknik/models/manufacture.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 custom_indoteknik/models/manufacture.py (limited to 'custom_indoteknik/models/manufacture.py') diff --git a/custom_indoteknik/models/manufacture.py b/custom_indoteknik/models/manufacture.py new file mode 100644 index 0000000..55ffe6f --- /dev/null +++ b/custom_indoteknik/models/manufacture.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +from odoo import api, fields, models, _ +from odoo.exceptions import UserError, RedirectWarning, ValidationError, except_orm, Warning +from datetime import datetime + + +class XManufacture(models.Model): + _name = "x.manufacture" + + x_name = fields.Char('Name') + x_negara_asal = fields.Char('Negara Asal') + x_short_desc = fields.Text('Short Description') + x_manufacture_category = fields.Many2one('x.manufacture.category', string="Manufacture Category") + x_manufacture_level = fields.Selection([ + ('Prioritas','Prioritas'), + ('Gold','Gold'), + ('Silver','Silver') + ], string="Manufacture Level") + x_produk_aksesoris_sparepart = fields.Selection([ + ('Produk','Produk'), + ('Aksesoris','Aksesoris'), + ('Sparepart','Sparepart') + ], string="Jenis Produk") + x_description = fields.Text('Description') + x_logo_manufacture = fields.Binary('Logo Manufacture') \ No newline at end of file -- cgit v1.2.3