summaryrefslogtreecommitdiff
path: root/v14_indoteknik/models/manufacture.py
blob: 55ffe6fb951fa55dc55c8910196dc31b4274486a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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')