diff options
| -rw-r--r-- | indoteknik_custom/models/purchasing_job.py | 4 | ||||
| -rw-r--r-- | indoteknik_custom/models/purchasing_job_state.py | 3 | ||||
| -rw-r--r-- | indoteknik_custom/views/purchasing_job.xml | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/purchasing_job_state.xml | 3 |
4 files changed, 9 insertions, 3 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) diff --git a/indoteknik_custom/views/purchasing_job.xml b/indoteknik_custom/views/purchasing_job.xml index 6b8baa53..d303e5ea 100644 --- a/indoteknik_custom/views/purchasing_job.xml +++ b/indoteknik_custom/views/purchasing_job.xml @@ -17,6 +17,7 @@ <field name="status_apo" invisible="1"/> <field name="action"/> <field name="note"/> + <field name="note_detail"/> <field name="date_po" optional="hide"/> <field name="so_number"/> <field name="check_pj" invisible="1"/> @@ -59,6 +60,7 @@ <field name="purchase_representative_id"/> <field name="vendor_id"/> <field name="note"/> + <field name="note_detail"/> </group> </group> </sheet> diff --git a/indoteknik_custom/views/purchasing_job_state.xml b/indoteknik_custom/views/purchasing_job_state.xml index c7c40020..ca08e44c 100644 --- a/indoteknik_custom/views/purchasing_job_state.xml +++ b/indoteknik_custom/views/purchasing_job_state.xml @@ -8,7 +8,8 @@ <sheet> <group> <field name="status_apo" readonly="1"/> - <field name="note"/> + <field name="note" invisible="1"/> + <field name="note_detail"/> </group> </sheet> </form> |
