From 1720d75dcb6ce51284040db33748f2dd79d334b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Fri, 29 Apr 2016 02:00:55 +0200 Subject: [PATCH] [IMP] description on report instance is now a related to the description done on the report --- mis_builder/models/mis_builder.py | 4 ++-- mis_builder/views/mis_builder.xml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mis_builder/models/mis_builder.py b/mis_builder/models/mis_builder.py index 148aea0d..bfdaa234 100644 --- a/mis_builder/models/mis_builder.py +++ b/mis_builder/models/mis_builder.py @@ -1025,8 +1025,8 @@ class MisReportInstance(models.Model): name = fields.Char(required=True, string='Name', translate=True) - description = fields.Char(required=False, - string='Description', translate=True) + description = fields.Char(related='report_id.description', + readonly=True) date = fields.Date(string='Base date', help='Report base date ' '(leave empty to use current date)') diff --git a/mis_builder/views/mis_builder.xml b/mis_builder/views/mis_builder.xml index ca294220..22fcea9d 100644 --- a/mis_builder/views/mis_builder.xml +++ b/mis_builder/views/mis_builder.xml @@ -313,9 +313,6 @@ 1