From b2377426bec8aa334277aac48b0b25f0dfac420f Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 25 Mar 2024 13:07:44 +0700 Subject: purchasing job feedback --- indoteknik_custom/models/purchasing_job_state.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 indoteknik_custom/models/purchasing_job_state.py (limited to 'indoteknik_custom/models/purchasing_job_state.py') diff --git a/indoteknik_custom/models/purchasing_job_state.py b/indoteknik_custom/models/purchasing_job_state.py new file mode 100644 index 00000000..57fd3db2 --- /dev/null +++ b/indoteknik_custom/models/purchasing_job_state.py @@ -0,0 +1,17 @@ +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) + -- cgit v1.2.3