summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/report_logbook_sj.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/report_logbook_sj.py')
-rw-r--r--indoteknik_custom/models/report_logbook_sj.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/indoteknik_custom/models/report_logbook_sj.py b/indoteknik_custom/models/report_logbook_sj.py
index 33a7ccb1..f34835ae 100644
--- a/indoteknik_custom/models/report_logbook_sj.py
+++ b/indoteknik_custom/models/report_logbook_sj.py
@@ -5,13 +5,16 @@ from datetime import datetime
class ReportLogbookSJ(models.Model):
_name = 'report.logbook.sj'
+ _description = "Logbook SJ"
+ _inherit = ['mail.thread']
+ _rec_name = 'name'
name = fields.Char(string='Name', default='Logbook SJ')
date = fields.Datetime(string='Date Created')
- date_approve = fields.Datetime(string='Date Approve')
- approve_by_finance = fields.Boolean(string='Approve By Finance')
- approve_by = fields.Many2one(comodel_name='res.users', string='Approve By')
- created_by = fields.Many2one(comodel_name='res.users', string='Created By')
+ date_approve = fields.Datetime(string='Date Approve', tracking=3)
+ approve_by_finance = fields.Boolean(string='Approve By Finance', tracking=3)
+ approve_by = fields.Many2one(comodel_name='res.users', string='Approve By', tracking=3)
+ created_by = fields.Many2one(comodel_name='res.users', string='Created By', tracking=3)
report_logbook_sj_line = fields.One2many(
comodel_name='report.logbook.sj.line',
inverse_name='report_logbook_sj_id',
@@ -24,7 +27,7 @@ class ReportLogbookSJ(models.Model):
],
default='terima_semua',
string='Status',
- tracking=True
+ tracking=True,
)
@api.model