diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
| commit | 1ca3b3df3421961caec3b747a364071c80f5c7da (patch) | |
| tree | 6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /custom_indoteknik/models/manufacture.py | |
| parent | b57188be371d36d96caac4b8d65a40745c0e972c (diff) | |
initial commit
Diffstat (limited to 'custom_indoteknik/models/manufacture.py')
| -rw-r--r-- | custom_indoteknik/models/manufacture.py | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
