diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-03-26 13:50:27 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-03-26 13:50:27 +0700 |
| commit | 935393a6a58b3df18f3361b36a6ea60647cd8be4 (patch) | |
| tree | e4ec9d300aff98a38a8524c209a19f970aa24f23 /indoteknik_custom/models/purchasing_job_state.py | |
| parent | db1780524b1e153338ced116f786b4d712d66aca (diff) | |
| parent | b2377426bec8aa334277aac48b0b25f0dfac420f (diff) | |
Merge branch 'purchasing-job' into production
# Conflicts:
# indoteknik_custom/models/__init__.py
# indoteknik_custom/models/sale_order.py
Diffstat (limited to 'indoteknik_custom/models/purchasing_job_state.py')
| -rw-r--r-- | indoteknik_custom/models/purchasing_job_state.py | 17 |
1 files changed, 17 insertions, 0 deletions
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) + |
