From 3f2bf0112f83844d18f27ff9d78c6e167adccf81 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 15 Dec 2022 14:20:11 +0100 Subject: [PATCH] [FIX] runbot: custom log_access fields shouldn't be automatic --- runbot/models/event.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runbot/models/event.py b/runbot/models/event.py index 8c09817d..ff8cb030 100644 --- a/runbot/models/event.py +++ b/runbot/models/event.py @@ -19,10 +19,10 @@ class runbot_event(models.Model): _order = 'id' _log_access = False - create_uid = fields.Many2one('res.users', string='Created by', automatic=True, readonly=True) - create_date = fields.Datetime(string='Created on', automatic=True, readonly=True) - write_uid = fields.Many2one('res.users', string='Last Updated by', automatic=True, readonly=True) - write_date = fields.Datetime(string='Last Updated on', automatic=True, readonly=True) + create_uid = fields.Many2one('res.users', string='Created by', readonly=True) + create_date = fields.Datetime(string='Created on', readonly=True) + write_uid = fields.Many2one('res.users', string='Last Updated by', readonly=True) + write_date = fields.Datetime(string='Last Updated on', readonly=True) build_id = fields.Many2one('runbot.build', 'Build', index=True, ondelete='cascade') active_step_id = fields.Many2one('runbot.build.config.step', 'Active step', index=True)