summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchasing_job_state.py
blob: ca557de1c3a842d4a9b1918ac03fb758be9a5bb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from odoo import fields, models, api, tools, _
import logging
from datetime import datetime

_logger = logging.getLogger(__name__)


class PurchasingJobState(models.Model):
    _name = 'purchasing.job.state'
    _rec_name = 'purchasing_job_id'

    purchasing_job_id = fields.Many2one('purchasing.job', string='Ref')
    status_apo = fields.Selection([
        ('not_apo', 'Belum APO'),
        ('apo', 'APO')
    ], string='APO?', copy=False)
    note = fields.Char(string="Note", copy=False)
    note_detail = fields.Text(string="Note Detail", copy=False)
    date_po = fields.Datetime(string='Date PO', copy=False)