summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-20 15:58:07 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2026-01-20 15:58:07 +0700
commit33f01a131c10b7352ade3b52072cfd5b6b2333f0 (patch)
tree07144ba59093b8b1eb3046599459234a680e4a10 /indoteknik_custom/models
parent7cd24a41b8f0bd3a60b52349dad5b5ea87b44478 (diff)
(andri) add note detail pj
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/purchasing_job.py4
-rw-r--r--indoteknik_custom/models/purchasing_job_state.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/indoteknik_custom/models/purchasing_job.py b/indoteknik_custom/models/purchasing_job.py
index 7a7e70b4..e457b86c 100644
--- a/indoteknik_custom/models/purchasing_job.py
+++ b/indoteknik_custom/models/purchasing_job.py
@@ -24,7 +24,8 @@ class PurchasingJob(models.Model):
('apo', 'APO')
], string='APO?')
purchase_representative_id = fields.Many2one('res.users', string="Purchase Representative", readonly=True)
- note = fields.Char(string="Note Detail")
+ note = fields.Char(string="Note")
+ note_detail = fields.Text(string="Note Detail")
date_po = fields.Datetime(string='Date PO', copy=False)
so_number = fields.Text(string='SO Number', copy=False)
check_pj = fields.Boolean(compute='_get_check_pj', string='Linked')
@@ -126,6 +127,7 @@ class PurchasingJob(models.Model):
pmp.action,
max(pjs.status_apo::text) AS status_apo,
max(pjs.note::text) AS note,
+ max(pjs.note_detail::text) AS note_detail,
max(pjs.date_po::text) AS date_po,
pmp.so_number,
CASE
diff --git a/indoteknik_custom/models/purchasing_job_state.py b/indoteknik_custom/models/purchasing_job_state.py
index d014edfe..ca557de1 100644
--- a/indoteknik_custom/models/purchasing_job_state.py
+++ b/indoteknik_custom/models/purchasing_job_state.py
@@ -14,5 +14,6 @@ class PurchasingJobState(models.Model):
('not_apo', 'Belum APO'),
('apo', 'APO')
], string='APO?', copy=False)
- note = fields.Char(string="Note Detail", 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)