diff --git a/yuthon_notice/models/yuthon_notice.py b/yuthon_notice/models/yuthon_notice.py index 84d71ecf5..0d1e4708a 100644 --- a/yuthon_notice/models/yuthon_notice.py +++ b/yuthon_notice/models/yuthon_notice.py @@ -69,6 +69,9 @@ class YuthonNotice(models.Model): is_company = fields.Boolean(string="本公司", default=True, compute='_compute_is_company', search='_search_part_of_company') + publish_date = fields.Date(string='发布日期') + + @api.depends_context('uid', 'company') @api.depends('company_id') def _compute_is_company(self): diff --git a/yuthon_notice/views/yuthon_notice_views.xml b/yuthon_notice/views/yuthon_notice_views.xml index 8d3691bbe..68055f5a7 100644 --- a/yuthon_notice/views/yuthon_notice_views.xml +++ b/yuthon_notice/views/yuthon_notice_views.xml @@ -57,6 +57,7 @@ +